Skip to content

Commit 6495432

Browse files
authored
Add explicit token permissions for stale workflow (#1131)
1 parent d12de9a commit 6495432

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/stale.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,14 @@ on:
44
schedule:
55
- cron: "12 5 * * *" # arbitrary time not to DDOS GitHub
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
stale:
12+
permissions:
13+
issues: write # for actions/stale to close stale issues
14+
pull-requests: write # for actions/stale to close stale PRs
915
runs-on: ubuntu-24.04
1016
env:
1117
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)