Skip to content

Close stale issues #440

Close stale issues

Close stale issues #440

Workflow file for this run

name: "Close stale issues"
on:
schedule:
- cron: "0 0 * * *"
permissions:
# Needed to write a stale message on issues
issues: write
# Needed to close a stale pull-request
pull-requests: write
jobs:
stale:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09 # v2.5.1
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- uses: actions/stale@1160a2240286f5da8ec72b1c0816ce2481aabf84 # v8.0.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue is stale because it has been open many days with no activity. It will be closed soon unless the stale label is removed or a comment is made.'
stale-issue-label: 'stale'
exempt-issue-label: 'never stale'
days-before-stale: 90
days-before-close: 14