build: harden stale.yml permissions

Signed-off-by: Alex <aleksandrosansan@gmail.com>
main
Alex 2 years ago
parent 0fe25f1f82
commit 213a275627

@ -3,8 +3,13 @@ on:
schedule: schedule:
- cron: "30 0 * * *" - cron: "30 0 * * *"
permissions: {}
jobs: jobs:
close-issues: close-issues:
permissions:
issues: write # to close stale issues (actions/stale)
pull-requests: write # to close stale PRs (actions/stale)
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/stale@v3 - uses: actions/stale@v3