Skip to content

Commit b16ac81

Browse files
Copilotshenxianpeng
andcommitted
Fix stale workflow permissions for reusable workflow compatibility
Co-authored-by: shenxianpeng <[email protected]>
1 parent 3e9666d commit b16ac81

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/stale.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@ name: 'Close stale issues'
22
on:
33
schedule:
44
- cron: '30 1 * * *'
5-
permissions:
6-
issues: write
5+
permissions: {}
76

87
jobs:
98
stale:
9+
permissions:
10+
contents: read
11+
issues: write
12+
pull-requests: write
1013
uses: cpp-linter/.github/.github/workflows/stale.yml@main

0 commit comments

Comments
 (0)