Skip to content

Commit 0838002

Browse files
authored
ci: fix missing permission for the stale workflow (#15342)
Permissions were restricted (following documentation of actions/stale) in 51ad150d9267fd22caa03dc5ddde5b15bb52c5cfd017217da30270b5c10ab6ae, but the `actions: write` is missing This permission is only mentioned in the top of documentation along with many other "optional" permissions that depend upon which features you use... but it is needed for the action to manipulate the actions cache the way that it does. When operations limit is exceeded, it "stops" and "picks up from where it left off" in the next run, and actions cache is used to do this.
1 parent 8e8e37d commit 0838002

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/mark-stale-PRs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919

2020
permissions:
2121
pull-requests: write # must comment/label PRs
22+
actions: write # must manipulate actions cache to split workload across multiple runs
2223

2324
steps:
2425
- name: Run stale PR action

0 commit comments

Comments
 (0)