-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
60 lines (47 loc) · 884 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
.PHONY: fe-install
fe-install:
cd ui && \
npm install
.PHONY: fe-dev
fe-dev:
cd ui && \
npm run dev
.PHONY: fe-build
fe-build:
cd ui && \
npm install && \
npm run build
.PHONY: be-dev
be-dev:
go run main.go server
.PHONY: ent-gen
ent-gen:
go generate ./...
.PHONY: be-build
be-build:
go build -o build/verinotes --tags ui
.PHONY: build
build: fe-build ent-gen be-build
.PHONY: run
run:
./build/verinotes server
.PHONY: lint
lint:
golangci-lint run
#
# Security Scans
#
.PHONY: scan
scan: osv-go gosec osv-ui govulncheck-scan
.PHONY: osv-go
osv-go:
osv-scanner -L go.mod --format json | jq '.results[].packages[].vulnerabilities[]'
.PHONY: osv-ui
osv-ui:
osv-scanner -L ui/package-lock.json --format json | jq '.results[].packages[].vulnerabilities[]'
.PHONY: gosec
gosec:
gosec -fmt=json ./...
.PHONY: govulncheck-scan
govulncheck-scan:
govulncheck ./...