mirror of
https://github.com/rjNemo/underscore
synced 2026-06-06 02:26:42 +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*
|
||||
.idea/
|
||||
.golangci.yml
|
||||
coverage.out
|
||||
coverage.out
|
||||
.trivycache/
|
||||
|
|
|
|||
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -58,3 +58,4 @@ Network Trash Folder
|
|||
Temporary Items
|
||||
.apdisk
|
||||
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"
|
||||
IMAGE=underscore
|
||||
|
||||
build:
|
||||
docker build -t underscore:latest .
|
||||
|
|
@ -6,6 +7,12 @@ build:
|
|||
test: build
|
||||
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:
|
||||
cd docs && hugo server -D
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
title: underscore
|
||||
title: _Underscore
|
||||
---
|
||||
|
||||

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