Skip to content

Commit e305db8

Browse files
committed
Fix the token permissions for private copies of the CodeQL Action, and for runs that are not from pull requests.
1 parent 643bc6e commit e305db8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/codeql.yml

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

1616
permissions:
17+
actions: read
1718
contents: read
19+
security-events: write
1820

1921
steps:
2022
- uses: actions/checkout@v2
@@ -63,6 +65,7 @@ jobs:
6365
runs-on: ${{ matrix.os }}
6466

6567
permissions:
68+
actions: read
6669
contents: read
6770
security-events: write
6871

0 commit comments

Comments
 (0)