| 123456789101112131415161718192021222324252627 |
- name: 'Close stale issues and PR'
- on:
- schedule:
- - cron: '30 1 * * *'
- permissions:
- contents: read
- jobs:
- stale:
- permissions:
- issues: write # for actions/stale to close stale issues
- pull-requests: write # for actions/stale to close stale PRs
- runs-on: ubuntu-latest
- steps:
- - uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
- with:
- egress-policy: audit
- - uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
- with:
- repo-token: ${{ secrets.GITHUB_TOKEN }}
- stale-issue-message: 'This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days.'
- stale-pr-message: 'This pr is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days.'
- close-issue-message: 'This issue was closed because it has been stalled for 30 days with no activity.'
- exempt-issue-labels: kind/feature
- days-before-stale: 90
- days-before-close: 30
|