mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
CI: Set explicit write permission for cache cleanup token
This commit is contained in:
parent
54278a48e7
commit
1e5b075f48
1 changed files with 5 additions and 1 deletions
6
.github/workflows/cache_cleanup.yml
vendored
6
.github/workflows/cache_cleanup.yml
vendored
|
@ -1,4 +1,4 @@
|
||||||
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/caching-dependencies-to-speed-up-workflows#force-deleting-cache-entries
|
# https://github.com/actions/cache/blob/main/tips-and-workarounds.md#force-deletion-of-caches-overriding-default-cache-eviction-policy
|
||||||
name: 🧹 Cache Cleanup
|
name: 🧹 Cache Cleanup
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
@ -9,6 +9,10 @@ jobs:
|
||||||
cleanup:
|
cleanup:
|
||||||
name: Cleanup PR caches
|
name: Cleanup PR caches
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
# `actions:write` permission is required to delete caches
|
||||||
|
actions: write
|
||||||
|
contents: read
|
||||||
steps:
|
steps:
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
env:
|
env:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue