Skip to content

Commit

Permalink
feat: support go-version-file
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-svensson committed Sep 29, 2022
1 parent 607ad9c commit 3f451af
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ inputs:
description: 'Run govulncheck on these packages.'
required: false
default: './...'
go-version-file:
description: 'Path to the go.mod file.'
required: false
go-version:
description: 'The go version to use when running govulncheck'
required: false
default: '1.19'
govuln-version:
description: 'The govulncheck version to use whe'
required: false
Expand All @@ -24,6 +26,7 @@ runs:
uses: actions/setup-go@v3
with:
go-version: ${{ inputs.go-version }}
go-version-file: ${{ inputs.go-version-file }}
- name: Get govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@${{ inputs.govuln-version }}
shell: bash
Expand Down

0 comments on commit 3f451af

Please sign in to comment.