GHA: enable the stale action to delete its saved state

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:43:20 +02:00 committed by Gianluca Zuccarelli
parent 230be8b504
commit 53301d5e6f

View file

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