File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 2020 golang_version :
2121 required : true
2222 type : string
23+ pull_request :
24+ types :
25+ - opened
26+ - synchronize
27+ branches :
28+ - main
29+ - release-*
30+
2331
2432jobs :
33+ # TODO: Is there a way that we can only invoke this if this is a PR?
34+ variables :
35+ uses : ./.github/workflows/variables.yaml
36+
2537 analyze :
38+ needs :
39+ - variables
2640 name : Analyze Go code with CodeQL
2741 runs-on : ubuntu-latest
2842 timeout-minutes : 360
@@ -32,18 +46,22 @@ jobs:
3246 steps :
3347 - name : Checkout repository
3448 uses : actions/checkout@v4
49+
3550 - name : Install Go
3651 uses : actions/setup-go@v5
3752 with :
38- go-version : ${{ inputs.golang_version }}
53+ go-version : ${{ needs.variables.outputs.golang_version }}
54+
3955 - name : Initialize CodeQL
4056 uses : github/codeql-action/init@v3
4157 with :
4258 languages : go
4359 build-mode : manual
60+
4461 - shell : bash
4562 run : |
4663 make build
64+
4765 - name : Perform CodeQL Analysis
4866 uses : github/codeql-action/analyze@v3
4967 with :
You can’t perform that action at this time.
0 commit comments