ci: add vulnerability-check
This commit is contained in:
+8
-4
@@ -1,10 +1,7 @@
|
|||||||
include:
|
include:
|
||||||
- template: 'Workflows/MergeRequest-Pipelines.gitlab-ci.yml'
|
- template: 'Workflows/MergeRequest-Pipelines.gitlab-ci.yml'
|
||||||
|
|
||||||
image: golang:1.18
|
image: golang:1.19.1
|
||||||
|
|
||||||
variables:
|
|
||||||
GOFLAGS: -mod=readonly
|
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- deps
|
- deps
|
||||||
@@ -28,3 +25,10 @@ test:
|
|||||||
- curl -Os https://uploader.codecov.io/latest/linux/codecov
|
- curl -Os https://uploader.codecov.io/latest/linux/codecov
|
||||||
- chmod +x codecov
|
- chmod +x codecov
|
||||||
- ./codecov -t ${CODECOV_TOKEN} -R $CI_PROJECT_DIR -C $CI_COMMIT_SHA -r $CI_PROJECT_PATH
|
- ./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