Skip to content

Commit ea8c70c

Browse files
Bump Templum/govulncheck-action from 1.0.0 to 1.0.2 Fix Go-Version (#325)
1 parent 3868348 commit ea8c70c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/govulncheck.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,12 @@ jobs:
1717
uses: actions/checkout@v4
1818
with:
1919
ref: ${{ github.event.pull_request.head.sha || github.ref }}
20+
- name: Read Go version from go.mod
21+
id: go-version
22+
run: echo "GO_VERSION=$(grep '^go ' go.mod | cut -d ' ' -f 2)" >> $GITHUB_ENV
2023
- name: Scan for Vulnerabilities in Code
21-
uses: Templum/govulncheck-action@6bb063b41d78c53c2fc7f5589828e30ad7c697ee # [email protected].0
24+
uses: Templum/govulncheck-action@0eeca9d81f01facc00829cc99a14e44ce59ce80f # [email protected].2
2225
with:
23-
go-version: 1.21
26+
go-version: ${{ env.GO_VERSION }}
2427
package: ./...
2528
fail-on-vuln: true

0 commit comments

Comments
 (0)