Skip to content

Commit fdf7ec8

Browse files
authored
feat: 🎨 Allow for running govulncheck without it stopping the pipeline (#35)
Signed-off-by: Thor Anker Kvisgård Lange <tal@netic.dk>
1 parent 231a431 commit fdf7ec8

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/go-ci.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ on:
4040
required: false
4141
default: true
4242
type: boolean
43+
govulncheck-fail:
44+
description: "Fail the workflow if govulncheck finds vulnerabilities"
45+
required: false
46+
default: true
47+
type: boolean
4348

4449
jobs:
4550
tests:
@@ -129,6 +134,7 @@ jobs:
129134

130135
- name: Run govulncheck
131136
if: inputs.run-govulncheck
137+
continue-on-error: ${{ !inputs.govulncheck-fail }}
132138
run: |
133139
go install golang.org/x/vuln/cmd/govulncheck@latest
134140
govulncheck -format text ./...

0 commit comments

Comments
 (0)