Skip to content

Commit cd38dd4

Browse files
pszymichigcbot
authored andcommitted
Adjust token permissionss for workflow
Move the permissions from top level to job level
1 parent 5a7c88e commit cd38dd4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/stale.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@ on:
1212
- cron: '30 1 * * *' # run every day
1313
workflow_dispatch: {}
1414

15-
permissions:
16-
contents: write
17-
issues: write
18-
pull-requests: write
15+
permissions: read-all
1916

2017
jobs:
2118
stale:
19+
permissions:
20+
contents: write
21+
issues: write
22+
pull-requests: write
2223
runs-on: [self-hosted, Linux]
2324
steps:
2425
- uses: actions/stale@v9

0 commit comments

Comments
 (0)