Skip to content

Commit

Permalink
Merge pull request #8499 from varunsh-coder/token-perms
Browse files Browse the repository at this point in the history
[GitHub] Add minimum GitHub token permissions for workflows
  • Loading branch information
joakime authored Sep 2, 2022
2 parents fa13370 + 7a3372f commit f2e9744
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
schedule:
- cron: '22 1 * * 2'

permissions:
contents: read

jobs:
analyze:
name: Analyze
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/stale-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f2e9744

Please sign in to comment.