ci: fix do-audit don't report error (#30728)

* ci: fix do-audit don't retport error

* Update ci/do-audit.sh

Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>

* use the latest suggestion

* lint

* redirect stderr to stdout

* another solution

---------

Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
This commit is contained in:
Yihau Chen 2023-03-16 11:58:08 +08:00 committed by GitHub
parent fce949009d
commit f8abc8df8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -30,3 +30,5 @@ cargo_audit_ignores=(
--ignore RUSTSEC-2023-0001
)
scripts/cargo-for-all-lock-files.sh audit "${cargo_audit_ignores[@]}" | $dep_tree_filter
# we want the `cargo audit` exit code, not `$dep_tree_filter`'s
exit "${PIPESTATUS[0]}"

View File

@ -125,4 +125,4 @@ fi
set -x
# shellcheck disable=SC2086
exec docker run "${ARGS[@]}" $CODECOV_ENVS "$IMAGE" "$@"
exec docker run "${ARGS[@]}" $CODECOV_ENVS -t "$IMAGE" "$@"