Skip to content

Commit ea4c50a

Browse files
committed
updated codeql-analysis.yml
Merged from mkiocccentry: .github/workflows/codeql.yml
1 parent 7f72908 commit ea4c50a

File tree

1 file changed

+27
-18
lines changed

1 file changed

+27
-18
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ name: "CodeQL"
1313

1414
on:
1515
push:
16-
branches: [ master ]
16+
branches: [ "master" ]
1717
pull_request:
1818
# The branches below must be a subset of the branches above
19-
branches: [ master ]
19+
branches: [ "master" ]
2020
schedule:
2121
- cron: '41 1 * * 6'
2222

@@ -33,39 +33,48 @@ jobs:
3333
fail-fast: false
3434
matrix:
3535
language: [ 'cpp' ]
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
36+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37+
# Use only 'java' to analyze code written in Java, Kotlin or both
38+
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
39+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
3940

4041
steps:
4142
- name: Checkout repository
42-
uses: actions/checkout@v2
43+
uses: actions/checkout@v4
44+
- name: Setup node
45+
uses: actions/setup-node@v4
46+
with:
47+
node-version: '20'
4348

4449
# Initializes the CodeQL tools for scanning.
4550
- name: Initialize CodeQL
46-
uses: github/codeql-action/init@v2
51+
uses: github/codeql-action/init@v3
4752
with:
4853
languages: ${{ matrix.language }}
4954
# If you wish to specify custom queries, you can do so here or in a config file.
5055
# By default, queries listed here will override any specified in a config file.
5156
# Prefix the list here with "+" to use these queries and those in the config file.
52-
# queries: ./path/to/local/query, your-org/your-repo/queries@main
5357

54-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
58+
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
59+
# queries: security-extended,security-and-quality
60+
61+
62+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
5563
# If this step fails, then you should remove it and run the build manually (see below)
5664
- name: Autobuild
57-
uses: github/codeql-action/autobuild@v2
65+
uses: github/codeql-action/autobuild@v3
5866

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

62-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
63-
# and modify them (or add more) to build your code if your project
64-
# uses a compiled language
70+
# If the Autobuild fails above, remove it and uncomment the following three lines.
71+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
6572

66-
#- run: |
67-
# make bootstrap
68-
# make release
73+
# - run: |
74+
# echo "Run, Build Application using script"
75+
# ./location_of_script_within_repo/buildscript.sh
6976

7077
- name: Perform CodeQL Analysis
71-
uses: github/codeql-action/analyze@v2
78+
uses: github/codeql-action/analyze@v3
79+
with:
80+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)