File tree 3 files changed +386
-0
lines changed
3 files changed +386
-0
lines changed Original file line number Diff line number Diff line change @@ -26,3 +26,4 @@ allowed:
26
26
- crd
27
27
- linter
28
28
- linters
29
+ - govulncheck
Original file line number Diff line number Diff line change 1
1
stages :
2
2
- lint
3
+ - checks
3
4
- build
4
5
- e2e
5
6
variables :
@@ -112,6 +113,28 @@ build:
112
113
- if : $CI_PIPELINE_SOURCE == 'merge_request_event'
113
114
- if : $CI_PIPELINE_SOURCE == 'push'
114
115
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
+
115
138
HAProxy_2_2 :
116
139
extends : .e2e
117
140
parallel :
You can’t perform that action at this time.
0 commit comments