Skip to content

Commit

Permalink
Add a few missing just recipes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcouture committed Oct 21, 2023
1 parent 79c0eff commit 369d160
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
bin := "nv"

# Run Aqua Security’s Trivy to catch possible vulnerabilities in the codebase
@audit:
docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock -v {{justfile_directory()}}:/path aquasec/trivy fs --scanners config,secret,vuln /path

# Build nv’s executable
@build $GO_ENABLED="0": clean
go mod download && go mod verify
go build -ldflags="-w -s" -v -x -o {{bin}} ./cmd/nv

# Delete nv’s executable
@clean:
rm -f {{bin}}

# Update dependencies
@go-mod-update:
go get -d -u ./...
Expand Down

0 comments on commit 369d160

Please sign in to comment.