8000 Upgrade codeql to v2 (#1023) · actions/cache@c1a5de8 · GitHub
[go: up one dir, main page]

Skip to content

Commit c1a5de8

Browse files
Phantsurekotewar
andauthored
Upgrade codeql to v2 (#1023)
* Upgrade codeql to v2 * Update codeql.yml Co-authored-by: Sankalp Kotewar <98868223+kotewar@users.noreply.github.com>
1 parent 9b0be58 commit c1a5de8

File tree

1 file changed

+17
-23
lines changed

1 file changed

+17
-23
lines changed

.github/workflows/codeql.yml

Lines changed: 17 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -8,45 +8,39 @@ on:
88

99
jobs:
1010
CodeQL-Build:
11-
12-
# CodeQL runs on ubuntu-latest and windows-latest
11+
# CodeQL runs on ubuntu-latest, windows-latest, and macos-latest
1312
runs-on: ubuntu-latest
1413

14+
permissions:
15+
# required for all workflows
16+
security-events: write
17+
1518
steps:
1619
- name: Checkout repository
1720
uses: actions/checkout@v3
18-
with:
19-
# We must fetch at least the immediate parents so that if this is
20-
# a pull request then we can checkout the head.
21-
fetch-depth: 2
22-
23-
# If this run was triggered by a pull request event, then checkout
24-
# the head of the pull request instead of the merge commit.
25-
- run: git checkout HEAD^2
26-
if: ${{ github.event_name == 'pull_request' }}
2721

2822
# Initializes the CodeQL tools for scanning.
2923
- name: Initialize CodeQL
30-
uses: github/codeql-action/init@v1
24+
uses: github/codeql-action/init@v2
3125
# Override language selection by uncommenting this and choosing your languages
3226
# with:
33-
# languages: go, javascript, csharp, python, cpp, java
27+
# languages: go, javascript, csharp, python, cpp, java, ruby
3428

35-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
36-
# If this step fails, then you should remove it and run the build manually (see below)
29+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
30+
# If this step fails, then you should remove it and run the build manually (see below).
3731
- name: Autobuild
38-
uses: github/codeql-action/autobuild@v1
32+
uses: github/codeql-action/autobuild@v2
3933

4034
# ℹ️ Command-line programs to run using the OS shell.
41-
# 📚 https://git.io/JvXDl
35+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
4236

43-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
44-
# and modify them (or add more) to build your code if your project
45-
# uses a compiled language
37+
# ✏️ If the Autobuild fails above, remove it and uncomment the following
38+
# three lines and modify them (or add more) to build your code if your
39+
# project uses a compiled language
4640

4741
#- run: |
48-
# make bootstrap
49-
# make release
42+
# make bootstrap
43+
# make release
5044

5145
- name: Perform CodeQL Analysis
52-
uses: github/codeql-action/analyze@v1
46+
uses: github/codeql-action/analyze@v2

0 commit comments

Comments
 (0)
0