Skip to content

Commit cbb5d33

Browse files
authored
Feature: CodeQL v2 (BornToBeRoot#1713)
* Feature: CodeQL v2 & git submodules * Feature: CodeQL v2 & git submodules
1 parent caa9fe7 commit cbb5d33

1 file changed

Lines changed: 13 additions & 6 deletions

File tree

.github/workflows/codeql-analysis.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@ on:
1010

1111
jobs:
1212
analyze:
13-
name: Analyze
14-
# runs-on: windows-latest
13+
name: Analyze
1514
runs-on: windows-2022
15+
permissions:
16+
actions: read
17+
contents: read
18+
security-events: write
1619
# Ignore dependabot, ImgBot and transifex-integration
1720
if: github.actor!= 'dependabot[bot]' &&
1821
github.actor!= 'imgbot[bot]' &&
@@ -25,15 +28,19 @@ jobs:
2528

2629
steps:
2730
- name: Checkout repository
28-
uses: actions/checkout@v2
31+
uses: actions/checkout@v3
32+
with:
33+
submodules: 'true'
2934

3035
- name: Initialize CodeQL
31-
uses: github/codeql-action/init@v1
36+
uses: github/codeql-action/init@v2
3237
with:
3338
languages: ${{ matrix.language }}
3439

3540
- name: Autobuild
36-
uses: github/codeql-action/autobuild@v1
41+
uses: github/codeql-action/autobuild@v2
3742

3843
- name: Perform CodeQL Analysis
39-
uses: github/codeql-action/analyze@v1
44+
uses: github/codeql-action/analyze@v2
45+
with:
46+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)