Skip to content

Commit 1d8f536

Browse files
ashishkurmisashashura
authored andcommitted
NIFI-10575 Added minimum GitHub token permissions for workflows
This closes apache#6469 Signed-off-by: David Handermann <[email protected]> Co-authored-by: Ashish Kurmi <[email protected]> Co-authored-by: Alex <[email protected]>
1 parent d6e42a1 commit 1d8f536

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

.github/workflows/ci-workflow.yml

+3
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ concurrency:
4949
group: ${{ github.ref }}
5050
cancel-in-progress: true
5151

52+
permissions:
53+
contents: read
54+
5255
jobs:
5356
static-analysis:
5457
timeout-minutes: 30

.github/workflows/stale.yml

+6
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,14 @@ on:
2020
schedule:
2121
- cron: "0 0 * * *"
2222

23+
permissions:
24+
contents: read
25+
2326
jobs:
2427
stale:
28+
permissions:
29+
issues: write # for actions/stale to close stale issues
30+
pull-requests: write # for actions/stale to close stale PRs
2531
runs-on: ubuntu-latest
2632
steps:
2733
- uses: actions/stale@v3

.github/workflows/system-tests.yml

+3
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ env:
5252
-pl nifi-system-tests/nifi-system-test-suite
5353
-pl nifi-system-tests/nifi-stateless-system-test-suite
5454
55+
permissions:
56+
contents: read
57+
5558
jobs:
5659
ubuntu-17:
5760
timeout-minutes: 120

0 commit comments

Comments
 (0)