Skip to content

Commit 65e75f0

Browse files
committed
👷 update codeQL config
1 parent 488210e commit 65e75f0

File tree

1 file changed

+31
-19
lines changed

1 file changed

+31
-19
lines changed

.github/workflows/codeql-analysis.yml

+31-19
Original file line numberDiff line numberDiff line change
@@ -13,60 +13,72 @@ name: "CodeQL"
1313

1414
on:
1515
push:
16-
branches: [ master ]
16+
branches: [ "master" ]
1717
pull_request:
18-
# The branches below must be a subset of the branches above
19-
branches: [ master ]
18+
branches: [ "master" ]
2019
schedule:
21-
- cron: '36 20 * * 6'
20+
- cron: '33 22 * * 5'
2221

2322
jobs:
2423
analyze:
2524
name: Analyze
26-
runs-on: ubuntu-latest
25+
# Runner size impacts CodeQL analysis time. To learn more, please see:
26+
# - https://gh.io/recommended-hardware-resources-for-running-codeql
27+
# - https://gh.io/supported-runners-and-hardware-resources
28+
# - https://gh.io/using-larger-runners
29+
# Consider using larger runners for possible analysis time improvements.
30+
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
31+
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
2732
permissions:
33+
# required for all workflows
34+
security-events: write
35+
36+
# only required for workflows in private repositories
2837
actions: read
2938
contents: read
30-
security-events: write
3139

3240
strategy:
3341
fail-fast: false
3442
matrix:
35-
language: [ 'javascript', 'python' ]
36-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
43+
language: [ 'javascript-typescript', 'python' ]
44+
# CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ]
45+
# Use only 'java-kotlin' to analyze code written in Java, Kotlin or both
46+
# Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
3747
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
3848

3949
steps:
4050
- name: Checkout repository
41-
uses: actions/checkout@v3
51+
uses: actions/checkout@v4
4252

4353
# Initializes the CodeQL tools for scanning.
4454
- name: Initialize CodeQL
45-
uses: github/codeql-action/init@v2
55+
uses: github/codeql-action/init@v3
4656
with:
4757
languages: ${{ matrix.language }}
4858
# If you wish to specify custom queries, you can do so here or in a config file.
4959
# By default, queries listed here will override any specified in a config file.
5060
# Prefix the list here with "+" to use these queries and those in the config file.
51-
52-
# 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
61+
62+
# For more 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
5363
# queries: security-extended,security-and-quality
5464

55-
56-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
65+
66+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
5767
# If this step fails, then you should remove it and run the build manually (see below)
5868
- name: Autobuild
59-
uses: github/codeql-action/autobuild@v2
69+
uses: github/codeql-action/autobuild@v3
6070

6171
# ℹ️ Command-line programs to run using the OS shell.
6272
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
6373

64-
# If the Autobuild fails above, remove it and uncomment the following three lines.
74+
# If the Autobuild fails above, remove it and uncomment the following three lines.
6575
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
6676

6777
# - run: |
68-
# echo "Run, Build Application using script"
69-
# ./location_of_script_within_repo/buildscript.sh
78+
# echo "Run, Build Application using script"
79+
# ./location_of_script_within_repo/buildscript.sh
7080

7181
- name: Perform CodeQL Analysis
72-
uses: github/codeql-action/analyze@v2
82+
uses: github/codeql-action/analyze@v3
83+
with:
84+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)