Skip to content

Commit bb3d692

Browse files
authored
cargo-auditable: provide automatic wrapper (#42571)
Provide cargo-auditable wrapper (similar to openssf-compiler-options gcc wrappers) such that cargo invocations default to cargo auditable. This allows to use existing `cargo build` commands via upstream makefiles, and yet gain audit information by default. Demo: - No change rebuild ci-cve-scan empty #42573 the scan result is here https://github.com/wolfi-dev/os/pull/42573/checks?check_run_id=37144021222 no vulnerabilities found - Adding the new cargo-auditable package to the environment, without changing vector upstream makefiles that call cargo build, and rust-audit-info is present which lits up ci-cve-scan #42572 see https://github.com/wolfi-dev/os/pull/42572/checks?check_run_id=37143110620 This makes it easier to use auditable ``` └── 📄 /usr/bin/vector 📦 async-graphql 7.0.7 (rust-crate) High CVE-2024-47614 GHSA-5gc2-7c65-8fq8 fixed in 7.0.10 📦 hickory-proto 0.24.1 (rust-crate) Medium CVE-2025-25188 GHSA-37wc-h8xc-5hc4 fixed in 0.24.3 Medium GHSA-v7pc-74h8-xq2h fixed in 0.24.3 📦 idna 0.4.0 (rust-crate) Medium GHSA-h97m-ww89-6jmq fixed in 1.0.0 📦 idna 0.2.3 (rust-crate) Medium GHSA-h97m-ww89-6jmq fixed in 1.0.0 📦 openssl 0.10.68 (rust-crate) Medium CVE-2025-24898 GHSA-rpmj-rpgj-qmpm fixed in 0.10.70 📦 rsa 0.9.3 (rust-crate) Medium GHSA-4grx-2x9w-596c Medium CVE-2023-49092 GHSA-c38w-74pg-36hr ``` And it lits up vector.
1 parent 5528163 commit bb3d692

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

cargo-auditable.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package:
22
name: cargo-auditable
33
version: 0.6.6
4-
epoch: 0
4+
epoch: 1
55
description: Cargo wrapper for embedding auditing data
66
copyright:
77
- license: MIT OR Apache-2.0
@@ -37,6 +37,9 @@ pipeline:
3737
install -Dm755 target/release/cargo-auditable -t "${{targets.destdir}}"/usr/bin/
3838
install -Dm644 cargo-auditable/cargo-auditable.1 -t "${{targets.destdir}}"/usr/share/man/man1/
3939
40+
# Install cargo wrapper
41+
install -Dm755 cargo -t "${{targets.destdir}}"/usr/local/bin
42+
4043
- uses: strip
4144

4245
subpackages:

cargo-auditable/cargo

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
# https://github.com/rust-secure-code/cargo-auditable/blob/master/REPLACING_CARGO.md
3+
export CARGO='/usr/bin/cargo'
4+
cargo-auditable auditable "$@"

0 commit comments

Comments
 (0)