mirror of
https://github.com/rjNemo/underscore
synced 2026-06-11 13:06:48 +00:00
add security scan
This commit is contained in:
parent
7cdbf7717f
commit
a8a485a537
4 changed files with 11 additions and 2 deletions
|
|
@ -4,4 +4,5 @@
|
||||||
.git*
|
.git*
|
||||||
.idea/
|
.idea/
|
||||||
.golangci.yml
|
.golangci.yml
|
||||||
coverage.out
|
coverage.out
|
||||||
|
.trivycache/
|
||||||
|
|
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -58,3 +58,4 @@ Network Trash Folder
|
||||||
Temporary Items
|
Temporary Items
|
||||||
.apdisk
|
.apdisk
|
||||||
docs/public
|
docs/public
|
||||||
|
.trivycache/
|
||||||
|
|
|
||||||
7
Makefile
7
Makefile
|
|
@ -1,4 +1,5 @@
|
||||||
TEST = "go test ./... -coverpkg=./... -coverprofile coverage.out -covermode=count; go tool cover -func coverage.out; rm coverage.out"
|
TEST = "go test ./... -coverpkg=./... -coverprofile coverage.out -covermode=count; go tool cover -func coverage.out; rm coverage.out"
|
||||||
|
IMAGE=underscore
|
||||||
|
|
||||||
build:
|
build:
|
||||||
docker build -t underscore:latest .
|
docker build -t underscore:latest .
|
||||||
|
|
@ -6,6 +7,12 @@ build:
|
||||||
test: build
|
test: build
|
||||||
docker run --name underscore --rm -i -t underscore sh -c $(TEST)
|
docker run --name underscore --rm -i -t underscore sh -c $(TEST)
|
||||||
|
|
||||||
|
scan:
|
||||||
|
trivy --cache-dir .trivycache/ image --exit-code 0 --no-progress --severity CRITICAL $(IMAGE)
|
||||||
|
|
||||||
|
scan-config:
|
||||||
|
trivy config .
|
||||||
|
|
||||||
docs:
|
docs:
|
||||||
cd docs && hugo server -D
|
cd docs && hugo server -D
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
title: underscore
|
title: _Underscore
|
||||||
---
|
---
|
||||||
|
|
||||||

|

|
||||||
|
|
|
||||||
Loading…
Reference in a new issue