Skip to content

Add workflow govulncheck to detect vulnerabilitied #47

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
8 changes: 6 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@
{
"name": "Set up Go ${{ matrix.go }}",
"uses": "actions/setup-go@v5",
"with": {"go-version": "${{ matrix.go }}" },
"with": {
"go-version": "${{ matrix.go }}",
"cache": true,
"cache-dependency-path": "**/go.sum",
},
Comment on lines +20 to +22

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is not needed, as caching enabled by default. See https://github.com/actions/setup-go#caching-dependency-files-and-build-outputs

"id": "go",
},
{"name": "Check out code into the Go module directory", "uses": "actions/checkout@v4"},
Expand All @@ -24,4 +28,4 @@
],
},
},
}
}
17 changes: 17 additions & 0 deletions .github/workflows/govulncheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This file adheres to the YAML5 style.
{
"name": "Go Vulnerability Check",
"on": ["push"],
"jobs": {
"govulncheck_job": {
"name": "Run govulncheck",
"runs-on": "ubuntu-latest",
"steps": [
{
"uses": "golang/govulncheck-action@v1",
"id": "govulncheck",
},
],
},
},
}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
[![GoDoc](https://pkg.go.dev/badge/github.com/quasilyte/go-consistent)](http://pkg.go.dev/github.com/quasilyte/go-consistent)
[![Go](https://github.com/quasilyte/go-consistent/actions/workflows/go.yml/badge.svg)](https://github.com/quasilyte/go-consistent/actions/workflows/go.yml)
[![Go Report Card](https://goreportcard.com/badge/github.com/quasilyte/go-consistent)](https://goreportcard.com/report/github.com/quasilyte/go-consistent)
[![Go Vulnerability Check](https://github.com/quasilyte/go-consistent/actions/workflows/govulncheck.yml/badge.svg)](https://github.com/quasilyte/go-consistent/actions/workflows/govulncheck.yml)
[![License](https://img.shields.io/github/license/quasilyte/go-consistent)](./LICENSE)

Source code analyzer that helps you to make your Go programs more consistent.
Expand Down
Loading