Skip to content

Commit 9b279e6

Browse files
committed
fix: update codeql workflow
1 parent 80eb8b7 commit 9b279e6

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,23 @@ on:
1616
schedule:
1717
- cron: 0 4 * * 0
1818

19+
permissions:
20+
contents: read
21+
1922
jobs:
2023
analyze:
24+
permissions:
25+
actions: read # for github/codeql-action/init to get workflow details
26+
contents: read # for actions/checkout to fetch code
27+
security-events: write # for github/codeql-action/autobuild to send a status report
2128
name: Analyze
2229
runs-on: ubuntu-24.04
2330
steps:
2431
- name: Checkout repository
25-
uses: actions/checkout@v4 # v4
32+
uses: actions/checkout@v4
2633

2734
- name: Initialize CodeQL
2835
uses: github/codeql-action/init@v3
29-
with:
30-
languages: ${{ matrix.language }}
3136

3237
- name: Autobuild
3338
uses: github/codeql-action/autobuild@v3

0 commit comments

Comments
 (0)