Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/florianl/govulncheck-action
Vulnerability scanner for Go
https://github.com/florianl/govulncheck-action
Last synced: 15 days ago
JSON representation
Vulnerability scanner for Go
- Host: GitHub
- URL: https://github.com/florianl/govulncheck-action
- Owner: florianl
- License: mit
- Created: 2022-09-15T17:51:06.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-26T17:59:00.000Z (about 2 years ago)
- Last Synced: 2024-10-19T11:41:30.843Z (25 days ago)
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# govulncheck-action
This is yet another action using [govulncheck](https://go.dev/blog/vuln) to identify vulnerabilities
in your Go code.It checks the code against known vulnerabilities published in
[pkg.go.dev/vuln](https://pkg.go.dev/vuln/).## Usage
```yaml
name: "Vulnerability scan"on:
push:
branches: [ main ]
pull_request:
branches: [ '**' ]jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: florianl/[email protected]
```A more advanced example that includes call stacks and provides a JSON output might look like this:
```yaml
name: "Vulnerability scan"on:
push:
branches: [ main ]
pull_request:
branches: [ '**' ]jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: florianl/[email protected]
with:
govulncheck-json: true
govulncheck-verbose: true
```## Options
### `install-go`
Let the action install a version of Go. If set to false, the action expects you to have installed Go
already. By default Go 1.19 will be installed.### `working-directory`
Optional path to the working directory govulncheck should be executed in.### `govulncheck-json`
Provide JSON output instead of standard text.### `govulncheck-tags`
Comma-seprated list of Go build tags.### `govulncheck-verbose`
Print a full call stack for each identified vulnerability.### `govulncheck-version`
Specify a verion of govulncheck to install. By default latest will be used.