99 branches :
1010 - main
1111 schedule :
12- - cron : ' 42 7 * * 5'
12+ - cron : " 42 7 * * 5"
13+ workflow_dispatch :
1314
1415jobs :
1516 analyze :
1617 name : Analyze
18+ if : github.repository == 'ARM-DOE/sts'
1719 runs-on : ubuntu-latest
1820 permissions :
1921 actions : read
@@ -23,39 +25,35 @@ jobs:
2325 strategy :
2426 fail-fast : false
2527 matrix :
26- language : [ 'go' ]
28+ language : ["go" ]
2729 # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
2830 # Learn more about CodeQL language support at https://git.io/codeql-language-support
2931
3032 steps :
31- - name : Checkout repository
32- uses : actions/checkout@v2
33-
34- # Initializes the CodeQL tools for scanning.
35- - name : Initialize CodeQL
36- uses : github/codeql-action/init@v3
37- with :
38- languages : ${{ matrix.language }}
39- # If you wish to specify custom queries, you can do so here or in a config file.
40- # By default, queries listed here will override any specified in a config file.
41- # Prefix the list here with "+" to use these queries and those in the config file.
42- # queries: ./path/to/local/query, your-org/your-repo/queries@main
43-
44- # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
45- # If this step fails, then you should remove it and run the build manually (see below)
46- - name : Autobuild
47- uses : github/codeql-action/autobuild@v1
48-
49- # ℹ️ Command-line programs to run using the OS shell.
50- # 📚 https://git.io/JvXDl
51-
52- # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
53- # and modify them (or add more) to build your code if your project
54- # uses a compiled language
55-
56- # - run: |
57- # make bootstrap
58- # make release
59-
60- - name : Perform CodeQL Analysis
61- uses : github/codeql-action/analyze@v3
33+ - name : Checkout repository
34+ uses : actions/checkout@v4
35+
36+ # Initializes the CodeQL tools for scanning.
37+ - name : Initialize CodeQL
38+ uses : github/codeql-action/init@v4
39+ with :
40+ languages : ${{ matrix.language }}
41+ # If you wish to specify custom queries, you can do so here or in a config file.
42+ # By default, queries listed here will override any specified in a config file.
43+ # Prefix the list here with "+" to use these queries and those in the config file.
44+ # queries: ./path/to/local/query, your-org/your-repo/queries@main
45+
46+ - name : Set up Go
47+ uses : actions/setup-go@v5
48+ with :
49+ go-version-file : go.mod
50+ cache : true
51+
52+ - name : Build
53+ run : go build ./...
54+
55+ # ℹ️ Command-line programs to run using the OS shell.
56+ # 📚 https://git.io/JvXDl
57+
58+ - name : Perform CodeQL Analysis
59+ uses : github/codeql-action/analyze@v4
0 commit comments