solana-program-library/ci/do-audit.sh

20 lines
481 B
Bash
Executable File

#!/usr/bin/env bash
set -e
cd "$(dirname "$0")/.."
source ./ci/rust-version.sh stable
cargo_audit_ignores=(
# Potential segfault in the time crate
#
# Blocked on chrono updating `time` to >= 0.2.23
--ignore RUSTSEC-2020-0071
# tokio: vulnerability affecting named pipes on Windows
#
# Exception is a stopgap to unblock CI
# https://github.com/solana-labs/solana/issues/29586
--ignore RUSTSEC-2023-0001
)
cargo +"$rust_stable" audit "${cargo_audit_ignores[@]}"