Skip to content

Commit 54fdbe8

Browse files
committed
Add cache-dependency-path
1 parent de58c6c commit 54fdbe8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/actions/govulncheck/action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: 'golang-govulncheck-action'
22
description: 'Run govulncheck'
33
inputs:
4-
go-version-input: # version of Go to use for govulncheck
4+
go-version-input: # version of Go to use for govulncheck
55
description: 'Version of Go to use for govulncheck'
66
required: false
77
default: 'stable'
@@ -13,6 +13,10 @@ inputs:
1313
description: 'Used to specify whether Go caching is needed. Set to true, if you would like to enable caching.'
1414
required: false
1515
default: true
16+
cache-dependency-path:
17+
description: 'Used to specify the path to a dependency file for monorepos - go.sum'
18+
required: false
19+
default: ''
1620
go-package:
1721
description: 'Go Package to scan with govulncheck'
1822
required: false
@@ -47,6 +51,7 @@ runs:
4751
check-latest: ${{ inputs.check-latest }}
4852
go-version-file: ${{ inputs.go-version-file }}
4953
cache: ${{ inputs.cache }}
54+
cache-dependency-path: ${{ inputs.cache-dependency-path }}
5055
- name: Install govulncheck
5156
run: go install golang.org/x/vuln/cmd/govulncheck@latest
5257
shell: bash

0 commit comments

Comments
 (0)