Update .gitea/scoped_workflows/static-go.yaml
This commit is contained in:
@@ -32,6 +32,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
go get .
|
go get .
|
||||||
GOTOOLCHAIN=local go install honnef.co/go/tools/cmd/staticcheck@latest
|
GOTOOLCHAIN=local go install honnef.co/go/tools/cmd/staticcheck@latest
|
||||||
|
GOTOOLCHAIN=local go install golang.org/x/vuln/cmd/govulncheck@latest
|
||||||
|
|
||||||
- name: Run Go Vet
|
- name: Run Go Vet
|
||||||
id: static-go-vet
|
id: static-go-vet
|
||||||
@@ -43,8 +44,14 @@ jobs:
|
|||||||
if: always()
|
if: always()
|
||||||
run: staticcheck ./...
|
run: staticcheck ./...
|
||||||
|
|
||||||
|
- name: Run Go Vuln Check
|
||||||
|
id: static-go-govulncheck
|
||||||
|
if: always()
|
||||||
|
run: govulncheck ./...
|
||||||
|
|
||||||
- name: Verify Static Analysis
|
- name: Verify Static Analysis
|
||||||
if: >
|
if: >
|
||||||
steps.static-go-vet.outcome != 'success' ||
|
steps.static-go-vet.outcome != 'success' ||
|
||||||
steps.static-go-staticcheck.outcome != 'success'
|
steps.static-go-staticcheck.outcome != 'success' ||
|
||||||
|
steps.static-go-govulncheck != 'success'
|
||||||
run: exit 1
|
run: exit 1
|
||||||
Reference in New Issue
Block a user