Skip to content

Commit 33bb16c

Browse files
authored
Merge pull request #457 from github/restrict-permissions
Restrict Actions token permissions in CodeQL workflow.
2 parents 1585462 + d879f4b commit 33bb16c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/codeql.yml

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

16+
permissions:
17+
actions: read
18+
contents: read
19+
security-events: write
20+
1621
steps:
1722
- uses: actions/checkout@v2
1823
- name: Init with default CodeQL bundle from the VM image
@@ -59,6 +64,11 @@ jobs:
5964
tools: ${{ fromJson(needs.check-codeql-versions.outputs.versions) }}
6065
runs-on: ${{ matrix.os }}
6166

67+
permissions:
68+
actions: read
69+
contents: read
70+
security-events: write
71+
6272
steps:
6373
- uses: actions/checkout@v2
6474
- uses: ./init

0 commit comments

Comments
 (0)