Skip to content

Commit

Permalink
go/lint: run govulncheck on moov-io repos
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdecaf committed Jul 19, 2023
1 parent ed6b275 commit ff93bb1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions go/lint-project.sh
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,15 @@ else
fi

## Run govulncheck which parses the compiled/used code for known vulnerabilities.
run_govulncheck=false
if [[ "$org" == "moov-io" ]]; then
run_govulncheck=true
fi
if [[ "$EXPERIMENTAL" == *"govulncheck"* ]]; then
# if [[ "$DISABLE_GOVULNCHECK" == "" ]]; then
# Install govulncheck (no binary release available currently)
run_govulncheck=true
fi
if [[ "$run_govulncheck" == "true" ]]; then
# Install the latest govulncheck release
go install golang.org/x/vuln/cmd/govulncheck@latest

# Find govulncheck
Expand Down

0 comments on commit ff93bb1

Please sign in to comment.