Skip to content

Commit

Permalink
ci: Update nancy depcheck job
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesjwarren committed Dec 13, 2021
1 parent c5c5281 commit ec2b173
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions {{cookiecutter.name}}/build/ci/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,11 @@ lint:
- ./bin/golangci-lint run

# Runs dependency vetting
# https://github.com/sonatype-nexus-community/nancy
depcheck:
stage: test
image: golang:{{cookiecutter.go}}-buster
variables:
NANCY_VERSION: v0.1.17
image: sonatypecommunity/nancy:alpine
allow_failure: true
script:
- apt-get update && apt-get install -y build-essential git
- go mod download
# https://github.com/sonatype-nexus-community/nancy
- wget -O /usr/local/bin/nancy https://github.com/sonatype-nexus-community/nancy/releases/download/${NANCY_VERSION}/nancy-linux.amd64-${NANCY_VERSION}
- chmod +x /usr/local/bin/nancy
- nancy go.sum
- apk add go
- go list -json -m all | nancy sleuth

0 comments on commit ec2b173

Please sign in to comment.