File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
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 :
2533 analyze :
@@ -32,18 +40,35 @@ jobs:
3240 steps :
3341 - name : Checkout repository
3442 uses : actions/checkout@v4
43+
44+ - name : Get Golang Version
45+ id : golang_version
46+ run : |
47+ GOLANG_VERSION=$(./hack/golang-version.sh)
48+ echo "golang_version=${GOLANG_VERSION##GOLANG_VERSION ?= }" >> $GITHUB_OUTPUT
49+
3550 - name : Install Go
51+ if : ${{ inputs.golang_version }}
3652 uses : actions/setup-go@v5
3753 with :
3854 go-version : ${{ inputs.golang_version }}
55+
56+ - name : Install Go
57+ if : ${{ steps.golang_version.outputs.golang_version }}
58+ uses : actions/setup-go@v5
59+ with :
60+ go-version : ${{ ${{ steps.golang_version.outputs.golang_version }} }}
61+
3962 - name : Initialize CodeQL
4063 uses : github/codeql-action/init@v3
4164 with :
4265 languages : go
4366 build-mode : manual
67+
4468 - shell : bash
4569 run : |
4670 make build
71+
4772 - name : Perform CodeQL Analysis
4873 uses : github/codeql-action/analyze@v3
4974 with :
You can’t perform that action at this time.
0 commit comments