File tree Expand file tree Collapse file tree 3 files changed +386
-0
lines changed Expand file tree Collapse file tree 3 files changed +386
-0
lines changed Original file line number Diff line number Diff line change @@ -26,3 +26,4 @@ allowed:
2626 - crd
2727 - linter
2828 - linters
29+ - govulncheck
Original file line number Diff line number Diff line change 11stages :
22 - lint
3+ - checks
34 - build
45 - e2e
56variables :
@@ -112,6 +113,28 @@ build:
112113 - if : $CI_PIPELINE_SOURCE == 'merge_request_event'
113114 - if : $CI_PIPELINE_SOURCE == 'push'
114115
116+ govulncheck :
117+ stage : checks
118+ needs : []
119+ image :
120+ name : $CI_REGISTRY_GO/docker:$DOCKER_VERSION-go$GO_VERSION
121+ entrypoint : [ "" ]
122+ rules :
123+ - if : $CI_PIPELINE_SOURCE == 'schedule' && $SCHEDULE_TYPE == 'daily'
124+ - if : $CI_PIPELINE_SOURCE == 'merge_request_event'
125+ changes :
126+ - go.mod
127+ - if : " $CI_PROJECT_NAMESPACE == 'haproxy-controller' && $CI_PIPELINE_SOURCE == 'push'"
128+ changes :
129+ - go.mod
130+ tags :
131+ - go
132+ script :
133+ - go install golang.org/x/vuln/cmd/govulncheck@latest
134+ - govulncheck -version
135+ - go mod tidy
136+ - go run cmd/govulncheck-report/main.go
137+
115138HAProxy_2_2 :
116139 extends : .e2e
117140 parallel :
You can’t perform that action at this time.
0 commit comments