Merge pull request #8499 from varunsh-coder/token-perms

[GitHub] Add minimum GitHub token permissions for workflows
This commit is contained in:
Joakim Erdfelt 2022-09-02 11:41:38 -05:00 committed by GitHub
commit f2e9744a3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -9,6 +9,9 @@ on:
schedule:
- cron: '22 1 * * 2'
permissions:
contents: read
jobs:
analyze:
name: Analyze

View File

@ -3,8 +3,14 @@ on:
schedule:
- cron: "0 0 * * *"
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-latest
steps:
- uses: actions/stale@v4