diff --git a/.dockerignore b/.dockerignore index 1418c3e..88ad044 100644 --- a/.dockerignore +++ b/.dockerignore @@ -4,4 +4,5 @@ .git* .idea/ .golangci.yml -coverage.out \ No newline at end of file +coverage.out +.trivycache/ diff --git a/.gitignore b/.gitignore index 5e2dba5..0fd6007 100644 --- a/.gitignore +++ b/.gitignore @@ -58,3 +58,4 @@ Network Trash Folder Temporary Items .apdisk docs/public +.trivycache/ diff --git a/Makefile b/Makefile index 885d624..a34621d 100644 --- a/Makefile +++ b/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 diff --git a/docs/content/_index.md b/docs/content/_index.md index 96b1749..f717fe2 100644 --- a/docs/content/_index.md +++ b/docs/content/_index.md @@ -1,5 +1,5 @@ --- -title: underscore +title: _Underscore --- ![License](https://img.shields.io/github/license/rjNemo/underscore?style=for-the-badge)