mirror of
https://github.com/datarhei/core.git
synced 2025-09-27 12:22:28 +08:00
Add vulnerability check
This commit is contained in:
7
Makefile
7
Makefile
@@ -11,6 +11,7 @@ init:
|
|||||||
go install honnef.co/go/tools/cmd/staticcheck@latest
|
go install honnef.co/go/tools/cmd/staticcheck@latest
|
||||||
go install github.com/swaggo/swag/cmd/swag@latest
|
go install github.com/swaggo/swag/cmd/swag@latest
|
||||||
go install github.com/99designs/gqlgen@latest
|
go install github.com/99designs/gqlgen@latest
|
||||||
|
go install golang.org/x/vuln/cmd/govulncheck@latest
|
||||||
|
|
||||||
## build: Build core (default)
|
## build: Build core (default)
|
||||||
build:
|
build:
|
||||||
@@ -40,6 +41,10 @@ vet:
|
|||||||
fmt:
|
fmt:
|
||||||
go fmt ./...
|
go fmt ./...
|
||||||
|
|
||||||
|
## vulncheck: Check for known vulnerabilities in dependencies
|
||||||
|
vulncheck:
|
||||||
|
govulncheck ./...
|
||||||
|
|
||||||
## update: Update dependencies
|
## update: Update dependencies
|
||||||
update:
|
update:
|
||||||
go get -u
|
go get -u
|
||||||
@@ -91,7 +96,7 @@ release_linux:
|
|||||||
docker:
|
docker:
|
||||||
docker build -t core:$(SHORTCOMMIT) .
|
docker build -t core:$(SHORTCOMMIT) .
|
||||||
|
|
||||||
.PHONY: help init build swagger test vet fmt vendor commit coverage lint release import update
|
.PHONY: help init build swagger test vet fmt vulncheck vendor commit coverage lint release import update
|
||||||
|
|
||||||
## help: Show all commands
|
## help: Show all commands
|
||||||
help: Makefile
|
help: Makefile
|
||||||
|
Reference in New Issue
Block a user