Skip to content

Pipeline - Stale

Pipeline - Stale #116

Workflow file for this run

---
name: Pipeline - Stale
on:
schedule:
- cron: "0 0 * * *"
permissions:
contents: read
issues: write
pull-requests: write
jobs:
# More info:
stale:
runs-on: ubuntu-latest
steps:
# More info: https://github.com/step-security/harden-runner.
- name: Harden Runner
id: harden_runner
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4
with:
egress-policy: audit
# More info: https://github.com/peter-murray/workflow-application-token-action.
- name: Get token
id: get_token
uses: peter-murray/workflow-application-token-action@dc0413987a085fa17d19df9e47d4677cf81ffef3
with:
application_id: ${{ secrets.ID_STALEBOT }}
application_private_key: ${{ secrets.PEM_STALEBOT }}
# More info: https://github.com/actions/checkout.
- name: Checkout & Authentication
uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f
with:
token: ${{ steps.get_token.outputs.token }}
persist-credentials: false
fetch-depth: 0
- name: Observer INC & PRs
uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e
with:
#repo-token: ${{ steps.get_token.outputs.token }}
days-before-stale: 30
days-before-close: 8
stale-issue-message: "The issue has been marked as stale due to inactivity. Please show activity within 8 days or it will be automatically closed."
stale-pr-message: "The Pull Request has been marked as stale due to inactivity. Please show activity within 8 days or it will be automatically closed."
close-issue-message: "The issue has been automatically closed."
close-pr-message: "The Pull Request has been automatically closed."
stale-issue-label: "status: ⌛ automatic-stale"
stale-pr-label: "status: ⌛ automatic-stale"
close-issue-label: "status: ✔️ automatic-closing"
close-pr-label: "status: ✔️ automatic-closing"
exempt-issue-labels: "status: 🆘 new-issue,status: ⌛ awaiting-review,status: ⌛ awaiting-reply,status: ⌛ in-progress,status: ⌛ in-review,status: ⌛ in-analysis,status: ⌛ research-needed,status: ✔️ approved-review,status: 📝 discussion,status: 💡 rfc,status: ❓ question,status: 🕜 relaunch-1,status: 🕜 relaunch-2,impact: ⚠️ critical,type: 🔐 security"
exempt-pr-labels: "status: 🆘 new-issue,status: ⌛ awaiting-review,status: ⌛ awaiting-reply,status: ⌛ in-progress,status: ⌛ in-review,status: ⌛ in-analysis,status: ⌛ research-needed,status: ✔️ approved-review,status: 📝 discussion,status: 💡 rfc,status: ❓ question,status: 🕜 relaunch-1,status: 🕜 relaunch-2,impact: ⚠️ critical,type: 🔐 security"
remove-stale-when-updated: true
delete-branch: false
- name: Print outputs
run: echo ${{ join(steps.stale.outputs.*, ',') }}