Skip to content

Commit d48bfdb

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

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.github/workflows/code_scanning.yaml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,23 @@ 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:
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:

0 commit comments

Comments
 (0)