foundry-security-spec
foundry-security-spec copied to clipboard
ci: add stale issues and PRs workflow
Summary
Add a GitHub Actions workflow (.github/workflows/stale.yml) that automatically marks and closes inactive issues and pull requests using actions/stale.
Motivation
As the repository accumulates issues and PRs, stale items create noise and obscure actionable work. Automating triage:
- Surfaces inactive items for maintainers to revisit or close.
- Keeps the backlog focused on items with active discussion.
- Reduces manual housekeeping for maintainers.
Proposed behavior
- Runs daily on a cron schedule (
33 2 * * *UTC) and can be triggered manually viaworkflow_dispatch. - Marks issues and PRs as
staleafter 60 days of inactivity. - Closes stale items after an additional 7 days of inactivity.
- Exempts items labeled
pinnedorsecurity, and any item with an assignee. - Caps work at 100 operations per run to stay well under GitHub API rate limits.
Security / supply-chain considerations
- The third-party action is pinned to a commit SHA (not a mutable tag), per repository supply-chain guidance.
permissions:is scoped to the minimum required (issues: write,pull-requests: write); no other token scopes are granted.- Uses the built-in
GITHUB_TOKEN— no long-lived secrets are introduced.
Acceptance criteria
- [x]
.github/workflows/stale.ymlexists and parses as valid YAML. - [x] Workflow appears under the repo's Actions tab.
- [x] Manual
workflow_dispatchrun completes successfully against the live repo. - [x] Action is pinned to a commit SHA with the version recorded in a trailing comment.