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 :
@@ -26,53 +15,8 @@ permissions:
2615jobs :
2716 analyze :
2817 name : Analyze
29- runs-on : ubuntu-latest
18+ uses : nodejs/web-team/.github/workflows/codeql.yml@2c2897a93eb99b4cdca270729100bc0887c758d9
3019 permissions :
3120 actions : read
3221 contents : read
3322 security-events : write
34-
35- strategy :
36- fail-fast : false
37- matrix :
38- language : ['javascript', 'typescript']
39- # CodeQL supports [ $supported-codeql-languages ]
40- # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
41-
42- steps :
43- - name : Harden Runner
44- uses : step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
45- with :
46- egress-policy : audit
47-
48- - name : Checkout repository
49- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
50-
51- # Initializes the CodeQL tools for scanning.
52- - name : Initialize CodeQL
53- uses : github/codeql-action/init@3599b3baa15b485a2e49ef411a7a4bb2452e7f93 # v3.30.5
54- with :
55- languages : ${{ matrix.language }}
56- # If you wish to specify custom queries, you can do so here or in a config file.
57- # By default, queries listed here will override any specified in a config file.
58- # Prefix the list here with "+" to use these queries and those in the config file.
59-
60- # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
61- # If this step fails, then you should remove it and run the build manually (see below)
62- - name : Autobuild
63- uses : github/codeql-action/autobuild@3599b3baa15b485a2e49ef411a7a4bb2452e7f93 # v3.30.5
64-
65- # ℹ️ Command-line programs to run using the OS shell.
66- # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
67-
68- # If the Autobuild fails above, remove it and uncomment the following three lines.
69- # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
70-
71- # - run: |
72- # echo "Run, Build Application using script"
73- # ./location_of_script_within_repo/buildscript.sh
74-
75- - name : Perform CodeQL Analysis
76- uses : github/codeql-action/analyze@3599b3baa15b485a2e49ef411a7a4bb2452e7f93 # v3.30.5
77- with :
78- category : ' /language:${{matrix.language}}'
0 commit comments