Skip to content

Commit 77b9233

Browse files
authored
chore(ci): move codeql-analysis.yml to codeql.yaml (#1378)
* chore(ci): move codeql-analysis.yml to codeql.yaml * chore(ci): update codeql
1 parent 2345c44 commit 77b9233

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed
Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# the `language` matrix defined below to confirm you have the correct set of
1010
# supported CodeQL languages.
1111
#
12-
name: codeql
12+
name: "CodeQL Advanced"
1313

1414
on:
1515
push:
@@ -28,14 +28,17 @@ jobs:
2828
actions: read
2929
contents: read
3030
security-events: write
31+
# required to fetch internal or private CodeQL packs
32+
packages: read
3133

3234
strategy:
3335
fail-fast: false
3436
matrix:
35-
language: [ 'go' ]
36-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
37-
# Learn more:
38-
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
37+
include:
38+
- language: actions
39+
build-mode: none
40+
- language: go
41+
build-mode: autobuild
3942

4043
steps:
4144
- name: Checkout repository
@@ -51,6 +54,7 @@ jobs:
5154
uses: github/codeql-action/init@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
5255
with:
5356
languages: ${{ matrix.language }}
57+
build-mode: ${{ matrix.build-mode }}
5458
# If you wish to specify custom queries, you can do so here or in a config file.
5559
# By default, queries listed here will override any specified in a config file.
5660
# Prefix the list here with "+" to use these queries and those in the config file.
@@ -74,3 +78,5 @@ jobs:
7478

7579
- name: Perform CodeQL Analysis
7680
uses: github/codeql-action/analyze@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3
81+
with:
82+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)