Skip to content

Commit c7237f0

Browse files
authored
ci: fix security scan input path (#1426)
Signed-off-by: Michael Beemer <[email protected]>
1 parent 8583f68 commit c7237f0

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

.github/workflows/build.yaml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ on:
1515
- "README.md"
1616
- "docs/**"
1717

18-
env:
19-
GO_VERSION: '~1.21'
20-
2118
jobs:
2219
lint:
2320
runs-on: ubuntu-latest
@@ -30,7 +27,7 @@ jobs:
3027
- name: Setup go
3128
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
3229
with:
33-
go-version: ${{ env.GO_VERSION }}
30+
go-version-file: 'flagd/go.mod'
3431
- run: make workspace-init
3532
- run: make lint
3633

@@ -42,7 +39,7 @@ jobs:
4239
- name: Setup go
4340
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
4441
with:
45-
go-version: ${{ env.GO_VERSION }}
42+
go-version-file: 'flagd/go.mod'
4643
- run: make workspace-init
4744
- run: make generate-docs
4845
- name: Check no diff
@@ -60,7 +57,7 @@ jobs:
6057
- name: Setup go
6158
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
6259
with:
63-
go-version: ${{ env.GO_VERSION }}
60+
go-version-file: 'flagd/go.mod'
6461
- run: make workspace-init
6562
- run: make test
6663
- name: Upload coverage to Codecov
@@ -78,7 +75,7 @@ jobs:
7875
- name: Setup go
7976
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
8077
with:
81-
go-version: ${{ env.GO_VERSION }}
78+
go-version-file: 'flagd/go.mod'
8279

8380
- name: Set up QEMU
8481
uses: docker/setup-qemu-action@master
@@ -100,9 +97,8 @@ jobs:
10097
- name: Run Trivy vulnerability scanner
10198
uses: aquasecurity/trivy-action@master
10299
with:
103-
input: /github/workspace/flagd-local.tar
104-
format: "template"
105-
template: "@/contrib/sarif.tpl"
100+
input: ${{ github.workspace }}/flagd-local.tar
101+
format: "sarif"
106102
output: "trivy-results.sarif"
107103
severity: "CRITICAL,HIGH"
108104

@@ -123,7 +119,7 @@ jobs:
123119
- name: Setup go
124120
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
125121
with:
126-
go-version: ${{ env.GO_VERSION }}
122+
go-version-file: 'flagd/go.mod'
127123

128124
- name: Workspace init
129125
run: make workspace-init

0 commit comments

Comments
 (0)