Update .gitea/scoped_workflows/static-go.yaml
This commit is contained in:
@@ -32,6 +32,7 @@ jobs:
|
||||
run: |
|
||||
go get .
|
||||
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
|
||||
id: static-go-vet
|
||||
@@ -43,8 +44,14 @@ jobs:
|
||||
if: always()
|
||||
run: staticcheck ./...
|
||||
|
||||
- name: Run Go Vuln Check
|
||||
id: static-go-govulncheck
|
||||
if: always()
|
||||
run: govulncheck ./...
|
||||
|
||||
- name: Verify Static Analysis
|
||||
if: >
|
||||
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
|
||||
Reference in New Issue
Block a user