1111permissions : {}
1212
1313jobs :
14- analyze :
14+ codeql-analysis :
1515 name : Analyze (${{ matrix.language }})
1616 # Runner size impacts CodeQL analysis time. To learn more, please see:
1717 # - https://gh.io/recommended-hardware-resources-for-running-codeql
@@ -20,16 +20,12 @@ jobs:
2020 # Consider using larger runners or machines with greater resources for possible analysis time improvements.
2121 runs-on : ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
2222 permissions :
23- # required for all workflows
24- security-events : write
25-
26- # required to fetch internal or private CodeQL packs
27- packages : read
28-
29- # only required for workflows in private repositories
23+ # for github/codeql-action/init to get workflow details
3024 actions : read
25+ # for actions/checkout to fetch code
3126 contents : read
32-
27+ # for github/codeql-action/autobuild to send a status report
28+ security-events : write
3329 strategy :
3430 fail-fast : false
3531 matrix :
5854
5955 # Initializes the CodeQL tools for scanning.
6056 - name : Initialize CodeQL
61- uses : github/codeql-action/init@3c3833e0f8c1c83d449a7478aa59c036a9165498 # v3.29.5
57+ uses : github/codeql-action/init@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3
6258 with :
6359 languages : ${{ matrix.language }}
6460 build-mode : ${{ matrix.build-mode }}
7066 # queries: security-extended,security-and-quality
7167
7268 - name : Perform CodeQL Analysis
73- uses : github/codeql-action/analyze@3c3833e0f8c1c83d449a7478aa59c036a9165498 # v3.29.5
69+ uses : github/codeql-action/analyze@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3
7470 with :
7571 category : " /language:${{matrix.language}}"
0 commit comments