Skip to content

Commit 8652697

Browse files
fix: stale workflow permissions for reusable workflow compatibility (#334)
* Initial plan * Fix stale workflow permissions for reusable workflow compatibility Co-authored-by: shenxianpeng <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: shenxianpeng <[email protected]>
1 parent 8b34252 commit 8652697

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)