Files
atlantis/.github/workflows/stale.yml
StepSecurity Bot 5e4a35b596 ci: [StepSecurity] Apply security best practices (#5271)
Signed-off-by: StepSecurity Bot <bot@stepsecurity.io>
Signed-off-by: Rui Chen <rui@chenrui.dev>
Co-authored-by: RB <7775707+nitrocode@users.noreply.github.com>
Co-authored-by: Rui Chen <rui@chenrui.dev>
2025-01-24 23:45:00 -05:00

32 lines
1.1 KiB
YAML

name: Close Stale PRs
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-24.04
steps:
- name: Harden Runner
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
with:
egress-policy: audit
- uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9
with:
stale-pr-message: 'This issue is stale because it has been open for 1 month with no activity. Remove stale label or comment or this will be closed in 1 month.'
stale-issue-message: This issue is stale because it has been open for 1 month with no activity. Remove stale label or comment or this will be closed in 1 month.'
remove-stale-when-updated: true
exempt-pr-labels: "never-stale"
exempt-issue-labels: "never-stale"
# 1 month
days-before-stale: 31
# 1 month
days-before-close: 31
only-labels: 'waiting-on-response'