Skip to content

Commit 5a45496

Browse files
committed
fix(linter): set proper permissions for CodeQL job
Signed-off-by: Emilien Escalle <[email protected]>
1 parent 4d2d977 commit 5a45496

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.github/workflows/linter.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ on:
3838
permissions:
3939
contents: read
4040
statuses: write
41+
security-events: write # If using CodeQL
4142

4243
jobs:
4344
main:

.github/workflows/linter.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ jobs:
9494
if: ${{ inputs.codeql-languages }}
9595
name: 🛡️ CodeQL Analysis
9696
permissions:
97+
contents: read
9798
security-events: write
9899
runs-on: ${{ fromJson(inputs.runs-on) }}
99100
strategy:

0 commit comments

Comments
 (0)