mirror of
https://github.com/ivuorinen/base-configs-markdownlint.git
synced 2026-03-01 14:54:01 +00:00
Replace secrets.PAT with secrets.GITHUB_TOKEN in publish.yml so semantic-release can comment on PRs/issues using the built-in token scoped by job-level permissions. Set top-level permissions to empty object across all workflows to follow the principle of least privilege, relying on job-level permissions blocks instead.
24 lines
526 B
YAML
24 lines
526 B
YAML
---
|
|
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
|
|
name: Stale
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "0 8 * * *" # Every day at 08:00
|
|
workflow_call:
|
|
workflow_dispatch:
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
stale:
|
|
name: 🧹 Clean up stale issues and PRs
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
contents: write # only for delete-branch option
|
|
issues: write
|
|
pull-requests: write
|
|
steps:
|
|
- uses: ivuorinen/actions/stale@8faacf8a1cae049c1471708dcb408a167e91afaf # v2026.02.24
|