Fix security audit installation on the ARM64 runner (#122)
Dependency security audit / rustsec (push) Successful in 20s
Dependency security audit / rustsec (push) Successful in 20s
This commit is contained in:
1 parent
c2dd826920
commit
5f49df38a0
2 files changed
+11
-4
No files matched your search
@@ -16,7 +16,12 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install the reviewed cargo-audit release
|
- name: Install the reviewed cargo-audit release
|
||||||
run: cargo install cargo-audit --locked --version 0.22.2
|
uses: https://github.com/taiki-e/install-action@9534c84618278caac52cb373bb164ed464dbd8af # v2
|
||||||
|
with:
|
||||||
|
tool: cargo-audit@0.22.2
|
||||||
|
fallback: none
|
||||||
|
|
||||||
- name: Reject new RustSec vulnerabilities
|
- name: Reject new RustSec vulnerabilities
|
||||||
run: cargo audit --ignore RUSTSEC-2023-0071
|
# Invoke the prebuilt binary directly: the runner has no Cargo toolchain.
|
||||||
|
# The existing RSA exception is documented in docs/ssh-transport-audit.md.
|
||||||
|
run: cargo-audit audit --ignore RUSTSEC-2023-0071
|
||||||
@@ -20,8 +20,10 @@ fn release_feature_and_advisory_boundaries_stay_explicit() {
|
|||||||
}
|
}
|
||||||
assert!(APPLE_MANIFEST.contains("default-features = false, features = [\"full\"]"));
|
assert!(APPLE_MANIFEST.contains("default-features = false, features = [\"full\"]"));
|
||||||
assert!(!APPLE_MANIFEST.contains("features = [\"ssh\"]"));
|
assert!(!APPLE_MANIFEST.contains("features = [\"ssh\"]"));
|
||||||
assert!(AUDIT_WORKFLOW.contains("cargo-audit --locked --version 0.22.2"));
|
assert!(AUDIT_WORKFLOW.contains("tool: cargo-audit@0.22.2"));
|
||||||
assert!(AUDIT_WORKFLOW.contains("cargo audit --ignore RUSTSEC-2023-0071"));
|
assert!(AUDIT_WORKFLOW.contains("fallback: none"));
|
||||||
|
assert!(!AUDIT_WORKFLOW.contains("cargo install"));
|
||||||
|
assert!(AUDIT_WORKFLOW.contains("run: cargo-audit audit --ignore RUSTSEC-2023-0071"));
|
||||||
assert!(AUDIT.contains("RUSTSEC-2023-0071"));
|
assert!(AUDIT.contains("RUSTSEC-2023-0071"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user