Skip to content

Commit 70e1a1b

Browse files
committed
fix(linter): set proper permissions for CodeQL job
Signed-off-by: Emilien Escalle <emilien.escalle@escemi.com>
1 parent 5748b3d commit 70e1a1b

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

.github/workflows/__pull-request-ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
branches: [main]
77

88
permissions:
9+
actions: read
910
contents: read
1011
statuses: write
1112
security-events: write

.github/workflows/__shared-ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
workflow_call:
55

66
permissions:
7+
actions: read
78
contents: read
89
statuses: write
910
security-events: write

.github/workflows/linter.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ on:
3838
permissions:
3939
contents: read
4040
statuses: write
41-
security-events: write # If using CodeQL
41+
# If using CodeQL
42+
actions: read
43+
security-events: write
4244

4345
jobs:
4446
main:

.github/workflows/linter.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ jobs:
9595
name: 🛡️ CodeQL Analysis
9696
permissions:
9797
contents: read
98+
actions: read
9899
security-events: write
99100
runs-on: ${{ fromJson(inputs.runs-on) }}
100101
strategy:

0 commit comments

Comments
 (0)