1+ ---
12# For most projects, this workflow file will not need changing; you simply need
23# to commit it to your repository.
34#
910# the `language` matrix defined below to confirm you have the correct set of
1011# supported CodeQL languages.
1112#
12- name : " CodeQL"
13+ name : CodeQL
1314
1415on :
1516 push :
16- branches : ["master"]
17+ branches :
18+ - master
1719 pull_request :
18- # The branches below must be a subset of the branches above
19- branches : ["master"]
2020 schedule :
21- - cron : " 0 0 * * 1"
21+ - cron : 0 0 * * 1
2222
2323permissions :
2424 contents : read
@@ -35,39 +35,48 @@ jobs:
3535 strategy :
3636 fail-fast : false
3737 matrix :
38- language : ["python"]
38+ language :
39+ - python
3940 # CodeQL supports [ $supported-codeql-languages ]
40- # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
41+ # Learn more about CodeQL language support at
42+ # https://aka.ms/codeql-docs/language-support
4143
4244 steps :
43- - name : Checkout repository
44- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
45+ - name : Checkout repository
46+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4547
46- # Initializes the CodeQL tools for scanning.
47- - name : Initialize CodeQL
48- uses : github/codeql-action/init@f6091c0113d1dcf9b98e269ee48e8a7e51b7bdd4 # v3.28.5
49- with :
50- languages : ${{ matrix.language }}
51- # If you wish to specify custom queries, you can do so here or in a config file.
52- # By default, queries listed here will override any specified in a config file.
53- # Prefix the list here with "+" to use these queries and those in the config file.
48+ # Initializes the CodeQL tools for scanning.
49+ - name : Initialize CodeQL
50+ # yamllint disable-line rule:line-length
51+ uses : github/codeql-action/init@f6091c0113d1dcf9b98e269ee48e8a7e51b7bdd4 # v3.28.5
52+ with :
53+ languages : ${{ matrix.language }}
54+ # If you wish to specify custom queries, you can do so here or in
55+ # a config file. # By default, queries listed here will override any
56+ # specified in a config file. Prefix the list here with "+" to use
57+ # these queries and those in the config file.
5458
55- # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
56- # If this step fails, then you should remove it and run the build manually (see below)
57- - name : Autobuild
58- uses : github/codeql-action/autobuild@f6091c0113d1dcf9b98e269ee48e8a7e51b7bdd4 # v3.28.5
59+ # Autobuild attempts to build any compiled languages (C/C++, C#, or Java)
60+ # If this step fails, then you should remove it and run the build
61+ # manually (see below)
62+ - name : Autobuild
63+ # yamllint disable-line rule:line-length
64+ uses : github/codeql-action/autobuild@f6091c0113d1dcf9b98e269ee48e8a7e51b7bdd4 # v3.28.5
5965
60- # ℹ️ Command-line programs to run using the OS shell.
61- # 📚 See 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+ # yamllint disable-line rule:line-length
68+ # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
6269
63- # If the Autobuild fails above, remove it and uncomment the following three lines.
64- # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
70+ # If the Autobuild fails above, remove it and uncomment the following
71+ # three lines. Modify them (or add more) to build your code if your
72+ # project, please refer to the EXAMPLE below for guidance.
6573
66- # - run: |
67- # echo "Run, Build Application using script"
68- # ./location_of_script_within_repo/buildscript.sh
74+ # - run: |
75+ # echo "Run, Build Application using script"
76+ # ./location_of_script_within_repo/buildscript.sh
6977
70- - name : Perform CodeQL Analysis
71- uses : github/codeql-action/analyze@f6091c0113d1dcf9b98e269ee48e8a7e51b7bdd4 # v3.28.5
72- with :
73- category : " /language:${{matrix.language}}"
78+ - name : Perform CodeQL Analysis
79+ # yamllint disable-line rule:line-length
80+ uses : github/codeql-action/analyze@f6091c0113d1dcf9b98e269ee48e8a7e51b7bdd4 # v3.28.5
81+ with :
82+ category : /language:${{matrix.language}}
0 commit comments