1212name : " CodeQL Advanced"
1313
1414on :
15+ # For Branch-Protection check. Only the default branch is supported. See
16+ # https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
17+ # branch_protection_rule:
1518 push :
1619 branches : [ "main" ]
1720 pull_request :
21+ # The branches below must be a subset of the branches above
1822 branches : [ "main" ]
23+ # To guarantee Maintained check is occasionally updated. See
24+ # https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
1925 schedule :
2026 - cron : ' 45 6 * * 6'
2127
22- # permissions:
23- # contents: read
24-
28+ # Declare default permissions as read only.
2529permissions :
2630 contents : read
2731
3438 # - https://gh.io/using-larger-runners (GitHub.com only)
3539 # Consider using larger runners or machines with greater resources for possible analysis time improvements.
3640 runs-on : ubuntu-latest
41+ # timeout-minutes: 360
3742 permissions :
3843 # required for all workflows
3944 security-events : write
@@ -75,10 +80,17 @@ jobs:
7580 # or others). This is typically only required for manual builds.
7681 # - name: Setup runtime (example)
7782 # uses: actions/setup-example@v1
83+ - name : Set up required Go version
84+ uses : actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
85+ with :
86+ go-version : 1.24
87+
88+ - name : Ensure actual Go version
89+ run : go version
7890
7991 # Initializes the CodeQL tools for scanning.
8092 - name : Initialize CodeQL
81- uses : github/codeql-action/init@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3
93+ uses : github/codeql-action/init@3599b3baa15b485a2e49ef411a7a4bb2452e7f93 # v3.30.5
8294 with :
8395 languages : ${{ matrix.language }}
8496 build-mode : ${{ matrix.build-mode }}
@@ -89,13 +101,12 @@ jobs:
89101 # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
90102 # queries: security-extended,security-and-quality
91103
92- # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
104+ # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift ).
93105 # If this step fails, then you should remove it and run the build manually (see below)
94106 - name : Autobuild
95- uses : github/codeql-action/autobuild@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3
107+ uses : github/codeql-action/autobuild@3599b3baa15b485a2e49ef411a7a4bb2452e7f93 # v3.30.5
96108 # If the Autobuild fails above, remove it and uncomment the following three lines.
97109 # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
98-
99110 # - run: |
100111 # echo "Run, Build Application using script"
101112 # ./location_of_script_within_repo/buildscript.sh
@@ -116,10 +127,8 @@ jobs:
116127 echo ' make bootstrap'
117128 echo ' make release'
118129 exit 1
119-
120-
121- - name: Perform CodeQL Analysis
130+
122131 - name : Perform CodeQL Analysis
123- uses : github/codeql-action/analyze@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3
132+ uses : github/codeql-action/analyze@3599b3baa15b485a2e49ef411a7a4bb2452e7f93 # v3.30.5
124133 with :
125134 category : " /language:${{matrix.language}}"
0 commit comments