Skip to content

A self-improving RLM agent for coding workflows and long-running autonomous tasks.

Rust

run dependency audits without Docker Hub (#3448)

kt3bf965963750
diff --git a/.github/actions/dependency-audit/action.yml b/.github/actions/dependency-audit/action.yml
new file mode 100644
index 0000000000..c58d1323c7
--- /dev/null
+++ b/.github/actions/dependency-audit/action.yml
@@ -0,0 +1,24 @@
+name: Dependency audit
+description: Run the pinned cargo-deny release without a Docker Hub dependency.
+runs:
+ using: composite
+ steps:
+ - uses: dtolnay/rust-toolchain@ce678459e9fc7500d337468f904b95f1b5c10b5e # 1.98.1, matching workspace CI
+ - name: Download and verify cargo-deny
+ shell: bash
+ run: |
+ set -euo pipefail
+ # Same upstream release as cargo-deny-action v2.1.1. Both callers use x86_64 Linux runners.
+ test "$(uname -s)" = Linux
+ test "$(uname -m)" = x86_64
+ install_dir="$(mktemp -d "${RUNNER_TEMP}/cargo-deny.XXXXXX")"
+ archive="${install_dir}/cargo-deny.tar.gz"
+ curl --fail --show-error --silent --location --retry 3 \
+ https://github.com/EmbarkStudios/cargo-deny/releases/download/0.20.2/cargo-deny-0.20.2-x86_64-unknown-linux-musl.tar.gz \
+ --output "$archive"
+ echo "9f12ed4c49936e09b48bf862b595cde2fe64fcbd9d74dfacac6131ca824c8d5f $archive" | sha256sum --check --strict
+ tar -xzf "$archive" --directory "$install_dir" --strip-components=1
+ echo "$install_dir" >> "$GITHUB_PATH"
+ - name: Check advisories and licenses
+ shell: bash
+ run: cargo-deny --log-level warn --manifest-path ./Cargo.toml --all-features --workspace check advisories licenses
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 463bcec19e..1a70571b75 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -465,11 +465,7 @@ jobs:
with:
persist-credentials: false
- name: Dependency audit (cargo-deny advisories + licenses)
- uses: EmbarkStudios/cargo-deny-action@3c6349835b2b7b196a839186cb8b78e02f7b5f25 # v2.1.1
- with:
- command: check
- arguments: --all-features --workspace
- command-arguments: advisories licenses
+ uses: ./.github/actions/dependency-audit
# The trust gate's own failure made visible: a vouch-step error (the
# action's setup, the runner) would otherwise leave every dependent job
diff --git a/.github/workflows/continuous.yml b/.github/workflows/continuous.yml
index e3d6296222..e398187dd6 100644
--- a/.github/workflows/continuous.yml
+++ b/.github/workflows/continuous.yml
@@ -80,11 +80,7 @@ jobs:
with:
persist-credentials: false
- name: Dependency audit (cargo-deny advisories + licenses)
- uses: EmbarkStudios/cargo-deny-action@3c6349835b2b7b196a839186cb8b78e02f7b5f25 # v2.1.1
- with:
- command: check
- arguments: --all-features --workspace
- command-arguments: advisories licenses
+ uses: ./.github/actions/dependency-audit
# The audit gates every build: an unaudited tree must not produce
# downloadable branch-channel binaries.