From ea58dbd507fbf8034b566cbfc2c24a269d5c2b1c Mon Sep 17 00:00:00 2001 From: Jelle Raaijmakers Date: Sat, 7 Dec 2024 21:58:53 +0100 Subject: [PATCH] CI: Set actions permission for stalebot The stale action has a weird interaction with the cache which requires the `actions: write` permission. Without this, it is unable to overwrite any existing cache key. --- .github/workflows/stale.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index ecfc5e6fa9c..d0051fb27e5 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -10,6 +10,9 @@ on: jobs: stale: runs-on: ubuntu-24.04 + permissions: + actions: write # required for cache management (see https://github.com/actions/stale/issues/1133) + pull-requests: write steps: # replace `uses:` below with upstream actions/stale when https://github.com/actions/stale/issues/1136 is fixed - uses: itchyny/actions-stale@0980a21d84c23bd4d8c62b0958f47f25822286f2