GHA: enable the stale action to delete its saved state
Some checks failed
Tests / 🐍 Lint (push) Failing after 1m25s
Tests / Unit tests (push) Failing after 2s
Tests / Shellcheck (push) Failing after 2s
Trigger GitLab CI / pr-info (push) Failing after 1s
Trigger GitLab CI / trigger-gitlab (push) Has been skipped

It turns out that the stale action is not able to delete its saved
state due to missing permissions. As a result, it was not processing
issues and PRs, that have been processed once, for almost a month.

The error in the job log was:
```
Warning: Error delete _state: [403] Resource not accessible by integration
```

The fix is to add `actions: write` to the action permissions

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
Tomáš Hozza 2025-06-18 10:29:39 +02:00 committed by Tomáš Hozza
parent 2e1d94aa48
commit 650663be78

View file

@ -8,6 +8,7 @@ jobs:
stale: stale:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
actions: write # needed to clean up the saved action state
issues: write issues: write
pull-requests: write pull-requests: write
steps: steps: