Skip to content

Commit

Permalink
ci: suppress dep trees by default in ci/do-audit.sh (#30255)
Browse files Browse the repository at this point in the history
get them back by passing `--display-dependency-trees`
  • Loading branch information
t-nelson authored Feb 11, 2023
1 parent d49b481 commit 85af236
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion ci/do-audit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ src_root="$(readlink -f "${here}/..")"

cd "${src_root}"

# `cargo-audit` doesn't give us a way to do this nicely, so hammer it is...
dep_tree_filter="grep -Ev '│|└|├|─'"

while [[ -n $1 ]]; do
if [[ $1 = "--display-dependency-trees" ]]; then
dep_tree_filter="cat"
shift
fi
done

cargo_audit_ignores=(
# Potential segfault in the time crate
#
Expand All @@ -19,4 +29,4 @@ cargo_audit_ignores=(
# https://github.com/solana-labs/solana/issues/29586
--ignore RUSTSEC-2023-0001
)
scripts/cargo-for-all-lock-files.sh audit "${cargo_audit_ignores[@]}"
scripts/cargo-for-all-lock-files.sh audit "${cargo_audit_ignores[@]}" | $dep_tree_filter

0 comments on commit 85af236

Please sign in to comment.