Skip to content

Commit 1b5b432

Browse files
authored
Merge pull request #1552 from onlydole/fix/codeql-permissions
Fix CodeQL workflow
2 parents 8b3233a + f37a084 commit 1b5b432

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ on:
2222

2323
permissions:
2424
contents: read
25+
security-events: write
26+
actions: read
2527

2628
jobs:
2729
analyze:
@@ -42,7 +44,7 @@ jobs:
4244

4345
# Initializes the CodeQL tools for scanning.
4446
- name: Initialize CodeQL
45-
uses: github/codeql-action/init@v2
47+
uses: github/codeql-action/init@v3
4648
with:
4749
languages: ${{ matrix.language }}
4850
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -53,7 +55,7 @@ jobs:
5355
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5456
# If this step fails, then you should remove it and run the build manually (see below)
5557
- name: Autobuild
56-
uses: github/codeql-action/autobuild@v2
58+
uses: github/codeql-action/autobuild@v3
5759

5860
# ℹ️ Command-line programs to run using the OS shell.
5961
# 📚 https://git.io/JvXDl
@@ -67,4 +69,4 @@ jobs:
6769
# make release
6870

6971
- name: Perform CodeQL Analysis
70-
uses: github/codeql-action/analyze@v2
72+
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)