ci: add vulnerability-check
This commit is contained in:
+8
-4
@@ -1,10 +1,7 @@
|
||||
include:
|
||||
- template: 'Workflows/MergeRequest-Pipelines.gitlab-ci.yml'
|
||||
|
||||
image: golang:1.18
|
||||
|
||||
variables:
|
||||
GOFLAGS: -mod=readonly
|
||||
image: golang:1.19.1
|
||||
|
||||
stages:
|
||||
- deps
|
||||
@@ -28,3 +25,10 @@ test:
|
||||
- curl -Os https://uploader.codecov.io/latest/linux/codecov
|
||||
- chmod +x codecov
|
||||
- ./codecov -t ${CODECOV_TOKEN} -R $CI_PROJECT_DIR -C $CI_COMMIT_SHA -r $CI_PROJECT_PATH
|
||||
|
||||
vulnerabilities:
|
||||
stage: test
|
||||
image: golang:1.19.1
|
||||
script:
|
||||
- go install golang.org/x/vuln/cmd/govulncheck@latest
|
||||
- govulncheck ./...
|
||||
|
||||
Reference in New Issue
Block a user