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 : [ main ]
16+ branches : [main]
1717 pull_request :
1818 # The branches below must be a subset of the branches above
19- branches : [ main ]
19+ branches : [main]
2020 schedule :
2121 - cron : ' 31 7 * * 3'
2222
23+ permissions : {}
24+
2325jobs :
2426 analyze :
2527 name : Analyze
@@ -32,40 +34,42 @@ jobs:
3234 strategy :
3335 fail-fast : false
3436 matrix :
35- language : [ 'TypeScript' ]
37+ language : ['TypeScript']
3638 # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
3739 # Learn more about CodeQL language support at https://git.io/codeql-language-support
3840
3941 steps :
40- - name : Checkout repository
41- uses : actions/checkout@v4
42+ - name : Checkout repository
43+ uses : actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
44+ with :
45+ persist-credentials : false
4246
43- # Initializes the CodeQL tools for scanning.
44- - name : Initialize CodeQL
45- uses : github/codeql-action/init@v3
46- with :
47- languages : ${{ matrix.language }}
48- source-root : src
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: ./path/to/local/query, your-org/your-repo/queries@main
47+ # Initializes the CodeQL tools for scanning.
48+ - name : Initialize CodeQL
49+ uses : github/codeql-action/init@df559355d593797519d70b90fc8edd5db049e7a2 # v3.29.9
50+ with :
51+ languages : ${{ matrix.language }}
52+ source-root : src
53+ # If you wish to specify custom queries, you can do so here or in a config file.
54+ # By default, queries listed here will override any specified in a config file.
55+ # Prefix the list here with "+" to use these queries and those in the config file.
56+ # queries: ./path/to/local/query, your-org/your-repo/queries@main
5357
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@v3
58+ # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
59+ # If this step fails, then you should remove it and run the build manually (see below)
60+ - name : Autobuild
61+ uses : github/codeql-action/autobuild@df559355d593797519d70b90fc8edd5db049e7a2 # v3.29.9
5862
59- # ℹ️ Command-line programs to run using the OS shell.
60- # 📚 https://git.io/JvXDl
63+ # ℹ️ Command-line programs to run using the OS shell.
64+ # 📚 https://git.io/JvXDl
6165
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
66+ # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
67+ # and modify them (or add more) to build your code if your project
68+ # uses a compiled language
6569
66- # - run: |
67- # make bootstrap
68- # make release
70+ # - run: |
71+ # make bootstrap
72+ # make release
6973
70- - name : Perform CodeQL Analysis
71- uses : github/codeql-action/analyze@v3
74+ - name : Perform CodeQL Analysis
75+ uses : github/codeql-action/analyze@df559355d593797519d70b90fc8edd5db049e7a2 # v3.29.9
0 commit comments