2023-08-21 11:16:46 +00:00
|
|
|
default:
|
2016-05-22 13:04:37 +00:00
|
|
|
|
2023-08-21 11:56:01 +00:00
|
|
|
install:
|
|
|
|
go install -a -ldflags "-X main.version=$(shell git describe --tags || git rev-parse --short HEAD || echo dev)"
|
|
|
|
|
|
|
|
lint:
|
|
|
|
golangci-lint run ./...
|
|
|
|
|
|
|
|
test:
|
|
|
|
go test -v ./...
|
2018-10-08 13:16:12 +00:00
|
|
|
|
|
|
|
publish:
|
|
|
|
curl -sSLo golang.sh https://raw.githubusercontent.com/Luzifer/github-publish/master/golang.sh
|
|
|
|
bash golang.sh
|
2016-10-28 12:54:35 +00:00
|
|
|
|
2023-08-21 11:56:01 +00:00
|
|
|
# -- Vulnerability scanning --
|
2016-05-23 11:20:01 +00:00
|
|
|
|
2023-08-21 11:56:01 +00:00
|
|
|
trivy:
|
|
|
|
trivy fs . \
|
|
|
|
--dependency-tree \
|
|
|
|
--exit-code 1 \
|
|
|
|
--format table \
|
|
|
|
--ignore-unfixed \
|
|
|
|
--quiet \
|
|
|
|
--scanners config,license,secret,vuln \
|
|
|
|
--severity HIGH,CRITICAL \
|
|
|
|
--skip-dirs docs
|