Skip to content

Commit 81da55a

Browse files
authored
upgrade action versions in codeql (#102)
* upgrade action versions in codeql * add permission to codeql
1 parent 1448d3a commit 81da55a

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/codeql.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@ name: "Code scanning - action"
33
on:
44
push:
55
pull_request:
6-
6+
7+
permissions:
8+
actions: read
9+
contents: read
10+
security-events: write
11+
712
jobs:
813
CodeQL-Build:
914

@@ -12,7 +17,7 @@ jobs:
1217

1318
steps:
1419
- name: Checkout repository
15-
uses: actions/checkout@v2
20+
uses: actions/checkout@v4
1621
with:
1722
# We must fetch at least the immediate parents so that if this is
1823
# a pull request then we can checkout the head.
@@ -25,15 +30,15 @@ jobs:
2530

2631
# Initializes the CodeQL tools for scanning.
2732
- name: Initialize CodeQL
28-
uses: github/codeql-action/init@v2
33+
uses: github/codeql-action/init@v3
2934
# Override language selection by uncommenting this and choosing your languages
3035
# with:
3136
# languages: go, javascript, csharp, python, cpp, java
3237

3338
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
3439
# If this step fails, then you should remove it and run the build manually (see below)
3540
- name: Autobuild
36-
uses: github/codeql-action/autobuild@v2
41+
uses: github/codeql-action/autobuild@v3
3742

3843
# ℹ️ Command-line programs to run using the OS shell.
3944
# 📚 https://git.io/JvXDl
@@ -47,4 +52,4 @@ jobs:
4752
# make release
4853

4954
- name: Perform CodeQL Analysis
50-
uses: github/codeql-action/analyze@v2
55+
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)