@@ -2,63 +2,66 @@ name: "CodeQL"
22
33on :
44 push :
5- branches : [ main, release-* ]
5+ branches :
6+ - main
7+ - release-*
68 pull_request :
79 # The branches below must be a subset of the branches above
8- branches : [ main ]
10+ branches :
11+ - main
912 schedule :
10- - cron : ' 36 6 * * 4' # run every Thursday at 06:36 UTC
13+ - cron : " 36 6 * * 4" # run every Thursday at 06:36 UTC
1114
1215concurrency :
1316 group : ${{ github.ref_name }}-codeql
1417 cancel-in-progress : true
1518
16- permissions : # added using https://github.com/step-security/secure-workflows
19+ permissions :
1720 contents : read
1821
1922jobs :
2023 analyze :
2124 permissions :
22- actions : read # for github/codeql-action/init to get workflow details
23- contents : read # for actions/checkout to fetch code
24- security-events : write # for github/codeql-action/autobuild to send a status report
25+ actions : read # for github/codeql-action/init to get workflow details
26+ contents : read # for actions/checkout to fetch code
27+ security-events : write # for github/codeql-action/autobuild to send a status report
2528 name : Analyze
2629 runs-on : ubuntu-latest
2730
2831 strategy :
2932 fail-fast : false
3033 matrix :
31- language : [ 'go', ' python' ]
34+ language : ["go", " python" ]
3235
3336 steps :
34- - name : Checkout repository
35- uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
37+ - name : Checkout repository
38+ uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
3639
37- # Initializes the CodeQL tools for scanning.
38- - name : Initialize CodeQL
39- uses : github/codeql-action/init@cdcdbb579706841c47f7063dda365e292e5cad7a # v2.13.4
40- with :
41- languages : ${{ matrix.language }}
42- # If you wish to specify custom queries, you can do so here or in a config file.
43- # By default, queries listed here will override any specified in a config file.
44- # Prefix the list here with "+" to use these queries and those in the config file.
45- # queries: ./path/to/local/query, your-org/your-repo/queries@main
40+ # Initializes the CodeQL tools for scanning.
41+ - name : Initialize CodeQL
42+ uses : github/codeql-action/init@f6e388ebf0efc915c6c5b165b019ee61a6746a38 # v2.20.1
43+ with :
44+ languages : ${{ matrix.language }}
45+ # If you wish to specify custom queries, you can do so here or in a config file.
46+ # By default, queries listed here will override any specified in a config file.
47+ # Prefix the list here with "+" to use these queries and those in the config file.
48+ # queries: ./path/to/local/query, your-org/your-repo/queries@main
4649
47- # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
48- # If this step fails, then you should remove it and run the build manually (see below)
49- - name : Autobuild
50- uses : github/codeql-action/autobuild@cdcdbb579706841c47f7063dda365e292e5cad7a # v2.13.4
50+ # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
51+ # If this step fails, then you should remove it and run the build manually (see below)
52+ - name : Autobuild
53+ uses : github/codeql-action/autobuild@f6e388ebf0efc915c6c5b165b019ee61a6746a38 # v2.20.1
5154
52- # ℹ️ Command-line programs to run using the OS shell.
53- # 📚 https://git.io/JvXDl
55+ # ℹ️ Command-line programs to run using the OS shell.
56+ # 📚 https://git.io/JvXDl
5457
55- # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
56- # and modify them (or add more) to build your code if your project
57- # uses a compiled language
58+ # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
59+ # and modify them (or add more) to build your code if your project
60+ # uses a compiled language
5861
59- # - run: |
60- # make bootstrap
61- # make release
62+ # - run: |
63+ # make bootstrap
64+ # make release
6265
63- - name : Perform CodeQL Analysis
64- uses : github/codeql-action/analyze@cdcdbb579706841c47f7063dda365e292e5cad7a # v2.13.4
66+ - name : Perform CodeQL Analysis
67+ uses : github/codeql-action/analyze@f6e388ebf0efc915c6c5b165b019ee61a6746a38 # v2.20.1
0 commit comments