Skip to content

Commit

Permalink
Restrict Actions token permissions in CodeQL workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Gavin committed Apr 22, 2021
1 parent 896b4ff commit 7e85b5d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ jobs:
outputs:
versions: ${{ steps.compare.outputs.versions }}

permissions:
contents: read

steps:
- uses: actions/checkout@v2
- name: Init with default CodeQL bundle from the VM image
Expand Down Expand Up @@ -59,6 +62,11 @@ jobs:
tools: ${{ fromJson(needs.check-codeql-versions.outputs.versions) }}
runs-on: ${{ matrix.os }}

permissions:
contents: read
security-events: write


steps:
- uses: actions/checkout@v2
- uses: ./init
Expand Down

0 comments on commit 7e85b5d

Please sign in to comment.