From 3f451af80979335f4e4dbbecf16299bcf471775e Mon Sep 17 00:00:00 2001 From: Peter Svensson Date: Thu, 29 Sep 2022 08:54:50 +0200 Subject: [PATCH] feat: support go-version-file --- action.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/action.yaml b/action.yaml index 0e8222f..505bcaf 100644 --- a/action.yaml +++ b/action.yaml @@ -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 @@ -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