Skip to content

Commit

Permalink
ci: fix do-audit don't report error (#30728)
Browse files Browse the repository at this point in the history
* ci: fix do-audit don't retport error

* Update ci/do-audit.sh

Co-authored-by: Trent Nelson <[email protected]>

* use the latest suggestion

* lint

* redirect stderr to stdout

* another solution

---------

Co-authored-by: Trent Nelson <[email protected]>
  • Loading branch information
yihau and t-nelson authored Mar 16, 2023
1 parent fce9490 commit f8abc8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ci/do-audit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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]}"
2 changes: 1 addition & 1 deletion ci/docker-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" "$@"

0 comments on commit f8abc8d

Please sign in to comment.