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>
17 lines
372 B
YAML
17 lines
372 B
YAML
name: Mark and close stale issues and PRs
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 4 * * *'
|
|
|
|
jobs:
|
|
stale:
|
|
runs-on: ubuntu-22.04
|
|
permissions:
|
|
actions: write # needed to clean up the saved action state
|
|
issues: write
|
|
pull-requests: write
|
|
steps:
|
|
- uses: osbuild/common-stale-action@main
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|