Skip to content

Commit

Permalink
Merge pull request #457 from github/restrict-permissions
Browse files Browse the repository at this point in the history
Restrict Actions token permissions in CodeQL workflow.
  • Loading branch information
chrisgavin authored Apr 30, 2021
2 parents 1585462 + d879f4b commit 33bb16c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ jobs:
outputs:
versions: ${{ steps.compare.outputs.versions }}

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

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

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

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

0 comments on commit 33bb16c

Please sign in to comment.