From 91a88ba0d3fe8731717cd8d64424dc2b90952162 Mon Sep 17 00:00:00 2001 From: John Sirois Date: Mon, 20 May 2019 08:13:55 -0600 Subject: [PATCH] Ignore `RUSTSEC-2019-0003`. (#7766) We have a fix in-flight in https://github.com/pantsbuild/rust-protobuf/pull/2 that will still need this `--ignore` even when we're consuming it. Adding the `--ignore` now silences nightly CRON audit noise in the meantime and going forward until we can upgrade to a public official release of protobuf with the `RUSTSEC-2019-0003` fix. Part of fixing #7760 --- build-support/bin/ci.sh | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/build-support/bin/ci.sh b/build-support/bin/ci.sh index baf3d3a68ed..35cab0ac7a1 100755 --- a/build-support/bin/ci.sh +++ b/build-support/bin/ci.sh @@ -248,8 +248,19 @@ fi if [[ "${run_cargo_audit:-false}" == "true" ]]; then start_travis_section "CargoAudit" "Running cargo audit on rust code" ( - "${REPO_ROOT}/build-support/bin/native/cargo" ensure-installed --package=cargo-audit --version=0.5.2 - "${REPO_ROOT}/build-support/bin/native/cargo" audit -f "${REPO_ROOT}/src/rust/engine/Cargo.lock" + # TODO(John Sirois): Kill --git-url/--git-rev when we upgrade to cargo-audit > 0.6.1. + # See: https://github.com/pantsbuild/pants/issues/7760 for context. + "${REPO_ROOT}/build-support/bin/native/cargo" ensure-installed \ + --package=cargo-audit \ + --version=0.6.1 \ + --git-url=https://github.com/RustSec/cargo-audit \ + --git-rev=1c298bcda2c74f4a1bd8f0d8482b3577ee94fbb3 + # TODO(John Sirois): Kill --ignore RUSTSEC-2019-0003 when we can upgrade to an official released + # version of protobuf with a fix. + # See: https://github.com/pantsbuild/pants/issues/7760 for context. + "${REPO_ROOT}/build-support/bin/native/cargo" audit \ + -f "${REPO_ROOT}/src/rust/engine/Cargo.lock" \ + --ignore RUSTSEC-2019-0003 ) || die "Cargo audit failure" end_travis_section fi