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'
1313
1414on :
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']
20+ paths :
21+ - ' **.js'
22+ - ' **.ejs'
23+ - ' **.tsx'
24+ - ' **.ts'
25+ - ' **.py'
26+ - ' !tests/**'
2027 schedule :
2128 - cron : ' 44 12 * * 1'
2229
@@ -32,42 +39,42 @@ jobs:
3239 strategy :
3340 fail-fast : false
3441 matrix :
35- language : [ 'javascript', 'python' ]
42+ language : ['javascript', 'python']
3643 # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
3744 # Learn more about CodeQL language support at https://git.io/codeql-language-support
3845
3946 steps :
40- - name : Checkout repository
41- uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
47+ - name : Checkout repository
48+ uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
4249
43- # Initializes the CodeQL tools for scanning.
44- - name : Initialize CodeQL
45- uses : github/codeql-action/init@3e7e3b32d0fb8283594bb0a76cc60a00918b0969 # v2
46- with :
47- config-file : ./.github/codeql/codeql-config.yml
48- languages : ${{ matrix.language }}
49- # If you wish to specify custom queries, you can do so here or in a config file.
50- # By default, queries listed here will override any specified in a config file.
51- # Prefix the list here with "+" to use these queries and those in the config file.
52- # queries: security-extended
50+ # Initializes the CodeQL tools for scanning.
51+ - name : Initialize CodeQL
52+ uses : github/codeql-action/init@3e7e3b32d0fb8283594bb0a76cc60a00918b0969 # v2
53+ with :
54+ config-file : ./.github/codeql/codeql-config.yml
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+ # queries: security-extended
5360
54- # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
55- # If this step fails, then you should remove it and run the build manually (see below)
56- - name : Autobuild
57- uses : github/codeql-action/autobuild@3e7e3b32d0fb8283594bb0a76cc60a00918b0969 # v2
61+ # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
62+ # If this step fails, then you should remove it and run the build manually (see below)
63+ - name : Autobuild
64+ uses : github/codeql-action/autobuild@3e7e3b32d0fb8283594bb0a76cc60a00918b0969 # v2
5865
59- # ℹ️ Command-line programs to run using the OS shell.
60- # 📚 https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
66+ # ℹ️ Command-line programs to run using the OS shell.
67+ # 📚 https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
6168
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
69+ # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
70+ # and modify them (or add more) to build your code if your project
71+ # uses a compiled language
6572
66- # - run: |
67- # make bootstrap
68- # make release
73+ # - run: |
74+ # make bootstrap
75+ # make release
6976
70- - name : Perform CodeQL Analysis
71- uses : github/codeql-action/analyze@3e7e3b32d0fb8283594bb0a76cc60a00918b0969 # v2
72- with :
73- category : " /language:${{matrix.language}}"
77+ - name : Perform CodeQL Analysis
78+ uses : github/codeql-action/analyze@3e7e3b32d0fb8283594bb0a76cc60a00918b0969 # v2
79+ with :
80+ category : ' /language:${{matrix.language}}'
0 commit comments