Skip to content

Commit 7e85b5d

Browse files
committed
Restrict Actions token permissions in CodeQL workflow.
1 parent 896b4ff commit 7e85b5d

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ jobs:
1313
outputs:
1414
versions: ${{ steps.compare.outputs.versions }}
1515

16+
permissions:
17+
contents: read
18+
1619
steps:
1720
- uses: actions/checkout@v2
1821
- name: Init with default CodeQL bundle from the VM image
@@ -59,6 +62,11 @@ jobs:
5962
tools: ${{ fromJson(needs.check-codeql-versions.outputs.versions) }}
6063
runs-on: ${{ matrix.os }}
6164

65+
permissions:
66+
contents: read
67+
security-events: write
68+
69+
6270
steps:
6371
- uses: actions/checkout@v2
6472
- uses: ./init

0 commit comments

Comments
 (0)