We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3868348 commit ea8c70cCopy full SHA for ea8c70c
.github/workflows/govulncheck.yml
@@ -17,9 +17,12 @@ jobs:
17
uses: actions/checkout@v4
18
with:
19
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
23
- name: Scan for Vulnerabilities in Code
- uses: Templum/govulncheck-action@6bb063b41d78c53c2fc7f5589828e30ad7c697ee # [email protected].0
24
+ uses: Templum/govulncheck-action@0eeca9d81f01facc00829cc99a14e44ce59ce80f # [email protected].2
25
- go-version: 1.21
26
+ go-version: ${{ env.GO_VERSION }}
27
package: ./...
28
fail-on-vuln: true
0 commit comments