Skip to content

Commit

Permalink
Fix the token permissions for private copies of the CodeQL Action, an…
Browse files Browse the repository at this point in the history
…d for runs that are not from pull requests.
  • Loading branch information
Chris Gavin committed Apr 30, 2021
1 parent 643bc6e commit e305db8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ jobs:
versions: ${{ steps.compare.outputs.versions }}

permissions:
actions: read
contents: read
security-events: write

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -63,6 +65,7 @@ jobs:
runs-on: ${{ matrix.os }}

permissions:
actions: read
contents: read
security-events: write

Expand Down

0 comments on commit e305db8

Please sign in to comment.