mirror of
https://gitea.com/actions/govulncheck-action.git
synced 2026-12-05 19:01:55 +00:00
action.yml: specify cache-dependency-path
Also, update the documentation. Fixes golang/go#70027 Change-Id: I55a45799e89c9073a43e242df9d0ae64db24dffe Reviewed-on: https://go-review.googlesource.com/c/govulncheck-action/+/642635 Reviewed-by: Sean Liao <sean@liao.dev> Commit-Queue: Zvonimir Pavlinovic <zpavlinovic@google.com> TryBot-Bypass: Zvonimir Pavlinovic <zpavlinovic@google.com> Reviewed-by: Zvonimir Pavlinovic <zpavlinovic@google.com> Reviewed-by: Ian Cottrell <iancottrell@google.com>
This commit is contained in:
1 parent
1ea760651e
commit
357ea4a541
2 files changed
+10
-2
No files matched your search
@@ -64,13 +64,16 @@ govulncheck GitHub Action accepts several other optional inputs:
|
||||
work-dir: directory in which to run govulncheck, default '.'
|
||||
repo-checkout: checkout the repository, default true
|
||||
check-latest: check for the latest Go version, default false
|
||||
cache: specify if caching is needed, default true
|
||||
cache-dependency-path: specify path to go.sum file (for monorepos), default ''
|
||||
go-version-file: go.mod or go.work file specifying Go version, default ''
|
||||
output-format: the format of govulncheck output ('text', 'json', or 'sarif'), default 'text'
|
||||
output-file: the file to which the output is redirected, default '' (no
|
||||
redirection)
|
||||
```
|
||||
The precedence for inputs `go-version-input`, `go-version-file`, and `check-latest`
|
||||
specifying Go version is inherited from [actions/setup-go](https://github.com/actions/setup-go).
|
||||
The precedence for inputs `go-version-input`, `go-version-file`, `check-latest`,
|
||||
`cache`, and `cache-dependency-path` specifying Go version and caches is inherited
|
||||
from [actions/setup-go](https://github.com/actions/setup-go).
|
||||
|
||||
The govulncheck-action follows the exit codes of govulncheck command.
|
||||
Specifying the output format 'json' or 'sarif' will return success even if
|
||||
|
||||
@@ -13,6 +13,10 @@ inputs:
|
||||
description: 'Used to specify whether Go caching is needed. Set to true, if you would like to enable caching.'
|
||||
required: false
|
||||
default: true
|
||||
cache-dependency-path:
|
||||
description: 'Used to specify the path to a dependency file (for monorepos) - go.sum'
|
||||
required: false
|
||||
default: ''
|
||||
go-package:
|
||||
description: 'Go Package to scan with govulncheck'
|
||||
required: false
|
||||
@@ -47,6 +51,7 @@ runs:
|
||||
check-latest: ${{ inputs.check-latest }}
|
||||
go-version-file: ${{ inputs.go-version-file }}
|
||||
cache: ${{ inputs.cache }}
|
||||
cache-dependency-path: ${{ inputs.cache-dependency-path }}
|
||||
- name: Install govulncheck
|
||||
run: go install golang.org/x/vuln/cmd/govulncheck@latest
|
||||
shell: bash
|
||||
|
||||
Reference in new issue
Block a user