1- # For most projects, this workflow file will not need changing; you simply need
2- # to commit it to your repository.
3- #
4- # You may wish to alter this file to override the set of languages analyzed,
5- # or to provide custom queries or build logic.
6- #
7- # ******** NOTE ********
8- # We have attempted to detect the languages in your repository. Please check
9- # the `language` matrix defined below to confirm you have the correct set of
10- # supported CodeQL languages.
11- #
121name : " CodeQL"
132
143on :
154 push :
165 branches : [ "develop" ]
176 pull_request :
18- # The branches below must be a subset of the branches above
197 branches : [ "develop" ]
208 schedule :
219 - cron : ' 32 13 * * 0'
@@ -26,11 +14,6 @@ permissions:
2614jobs :
2715 analyze :
2816 name : Analyze
29- # Runner size impacts CodeQL analysis time. To learn more, please see:
30- # - https://gh.io/recommended-hardware-resources-for-running-codeql
31- # - https://gh.io/supported-runners-and-hardware-resources
32- # - https://gh.io/using-larger-runners
33- # Consider using larger runners for possible analysis time improvements.
3417 runs-on : ${{ (matrix.language == 'swift' && 'macos-latest') || 'blacksmith-4vcpu-ubuntu-2204' }}
3518 timeout-minutes : ${{ (matrix.language == 'swift' && 120) || 360 }}
3619 permissions :
@@ -42,54 +25,30 @@ jobs:
4225 fail-fast : false
4326 matrix :
4427 language : [ 'javascript' ]
45- # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby', 'swift' ]
46- # Use only 'java' to analyze code written in Java, Kotlin or both
47- # Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
48- # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
4928
5029 steps :
5130 - name : Harden Runner
52- uses : step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
31+ uses : step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f
5332 with :
5433 egress-policy : audit
5534
5635 - name : Checkout repository
57- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
36+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
5837
59- # Initializes the CodeQL tools for scanning.
6038 - name : Initialize CodeQL
61- uses : github/codeql-action/init@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0
39+ uses : github/codeql-action/init@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169
6240 with :
6341 languages : ${{ matrix.language }}
64- # If you wish to specify custom queries, you can do so here or in a config file.
65- # By default, queries listed here will override any specified in a config file.
66- # Prefix the list here with "+" to use these queries and those in the config file.
6742
68- # 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
69- # queries: security-extended,security-and-quality
70-
71-
72- # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
73- # If this step fails, then you should remove it and run the build manually (see below)
7443 - name : Autobuild
75- uses : github/codeql-action/autobuild@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0
76-
77- # ℹ️ Command-line programs to run using the OS shell.
78- # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
79-
80- # If the Autobuild fails above, remove it and uncomment the following three lines.
81- # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
82-
83- # - run: |
84- # echo "Run, Build Application using script"
85- # ./location_of_script_within_repo/buildscript.sh
44+ uses : github/codeql-action/autobuild@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169
8645
8746 - name : Perform CodeQL Analysis
88- uses : github/codeql-action/analyze@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0
47+ uses : github/codeql-action/analyze@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169
8948 with :
90- category : " /language:${{matrix.language}}"
49+ category : " /language:${{ matrix.language }}"
9150 paths-ignore :
92- - ' modules'
93- - ' *start.js'
94- - ' *finish.js'
95- - ' 97saveas.js'
51+ - " modules"
52+ - " *start.js"
53+ - " *finish.js"
54+ - " 97saveas.js"
0 commit comments