This commit is contained in:
Phil 2022-12-23 23:20:22 +01:00
parent c54789f0b9
commit eb791428e5

View file

@ -1,5 +1,6 @@
---
kind: pipeline kind: pipeline
name: default name: check
workspace: workspace:
base: /go base: /go
@ -20,9 +21,9 @@ steps:
- go get -v -d . - go get -v -d .
- gosec ./... - gosec ./...
---
kind: pipeline kind: pipeline
name: default2 name: build
workspace: workspace:
base: /go base: /go
@ -36,9 +37,5 @@ steps:
- go vet $(go list ./... | grep -v /vendor/) - go vet $(go list ./... | grep -v /vendor/)
- go test -race $(go list ./... | grep -v /vendor/) - go test -race $(go list ./... | grep -v /vendor/)
- name: check-sec depends_on:
image: golang - check
commands:
- go install github.com/securego/gosec/v2/cmd/gosec@latest
- go get -v -d .
- gosec ./...