Skip to content

Commit 4d71c32

Browse files
committed
ci(github-actions): least priviledge
1 parent 244beae commit 4d71c32

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ jobs:
2020
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
2121
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
2222
permissions:
23+
# for github/codeql-action/init to get workflow details
24+
actions: read
25+
# for actions/checkout to fetch code
26+
contents: read
27+
# for github/codeql-action/autobuild to send a status report
28+
security-events: write
2329
strategy:
2430
fail-fast: false
2531
matrix:

0 commit comments

Comments
 (0)