|author||Brandon Kessler <firstname.lastname@example.org>||Mon Jun 12 15:13:57 2023 -0400|
|committer||Brandon Kessler <email@example.com>||Tue Jun 20 13:23:42 2023 +0000|
govulncheck-action: add check-latest and cache options Add options for check-latest and cache as optional inputs for setup-go. Fixes golang/go#60704 Change-Id: I72325a5f6d8282a9b000fa24e91da65574f05193 Reviewed-on: https://go-review.googlesource.com/c/govulncheck-action/+/502538 Reviewed-by: Julie Qiu <firstname.lastname@example.org> TryBot-Bypass: Brandon Kessler <email@example.com>
This repository holds the GitHub Action for govulncheck.
The govulncheck GitHub Action is currently experimental and is under active development.
To use the govulncheck GitHub Action add the following step to your workflow:
- id: govulncheck uses: firstname.lastname@example.org
By default the govulncheck Github Action will run with the latest version of Go and analyze all packages in the provided Go module. Assuming you have the latest Go version installed locally, this is equivalent to running the following on your command line:
$ govulncheck ./...
To specify a specific Go version or package pattern, use the following syntax:
- id: govulncheck uses: email@example.com with: go-version-input: <your-Go-version> go-package: <your-package-pattern>
For example, the code snippet below can be used to run govulncheck against a repository on every push:
on: [push] jobs: govulncheck_job: runs-on: ubuntu-latest name: Run govulncheck steps: - id: govulncheck uses: firstname.lastname@example.org with: go-version-input: 1.20.4 go-package: ./...
When a vulnerability is found, an error will be displayed for that GitHub job with information about the vulnerability and how to fix it. For example:
Our canonical Git repository is located at https://go.googlesource.com/govulncheck-action. There is a mirror of the repository at https://github.com/golang/govulncheck-action. See https://go.dev/doc/contribute.html for details on how to contribute.
The main issue tracker for the time repository is located at
If you want to report a bug or have a feature suggestion, please file an issue at https://github.com/golang/go/issues, prefixed with
govulncheck-action: in the title.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.