mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
github/govuln: don't swallow govulncheck errors
By running `find -exec`, an error exit code doesn't properly return the error if there's a failure in a command executed. Use `xargs` to force an exit with error when a command fails to run. Signed-off-by: Ivan Valdes <ivan@vald.es>
This commit is contained in:
parent
8fde09b634
commit
20f7988c1d
2
.github/workflows/govuln.yaml
vendored
2
.github/workflows/govuln.yaml
vendored
@ -18,4 +18,4 @@ jobs:
|
||||
|
||||
go install golang.org/x/vuln/cmd/govulncheck@latest
|
||||
|
||||
find -name go.mod -exec /bin/bash -c 'echo scanning $(dirname {}); govulncheck -C $(dirname {}) -show verbose ./...' \;
|
||||
find . -name go.mod | xargs -I'{}' /bin/bash -c 'echo scanning $(dirname {}); govulncheck -C $(dirname {}) -show verbose ./...'
|
||||
|
Loading…
x
Reference in New Issue
Block a user