Skip to content

Commit c69b898

Browse files
committed
TOFIX: codeql
Signed-off-by: Evan Lezar <[email protected]>
1 parent 5a2ad4c commit c69b898

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/code_scanning.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ on:
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

2432
jobs:
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:

0 commit comments

Comments
 (0)