Skip to content

Commit fde0616

Browse files
authored
Merge pull request godotengine#104220 from akien-mga/ci-cache-cleanup-v2
CI: Set explicit write permission for cache cleanup token
2 parents 54278a4 + 1e5b075 commit fde0616

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/cache_cleanup.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/caching-dependencies-to-speed-up-workflows#force-deleting-cache-entries
1+
# https://github.com/actions/cache/blob/main/tips-and-workarounds.md#force-deletion-of-caches-overriding-default-cache-eviction-policy
22
name: 🧹 Cache Cleanup
33
on:
44
pull_request:
@@ -9,6 +9,10 @@ jobs:
99
cleanup:
1010
name: Cleanup PR caches
1111
runs-on: ubuntu-latest
12+
permissions:
13+
# `actions:write` permission is required to delete caches
14+
actions: write
15+
contents: read
1216
steps:
1317
- name: Cleanup
1418
env:

0 commit comments

Comments
 (0)