fix: address PR review feedback for cargo-deny integration

- quality_gate_strict.sh: fail hard when cargo-deny is not installed
  instead of silently skipping, and let set -e handle check failures
- deny.toml: remove empty [graph].targets so cargo-deny checks all
  platforms instead of only the runner's default target

Co-Authored-By: Claude Opus 4.6 <[email protected]>
This commit is contained in:
2026-03-10 00:35:17 -07:00
co-authored by Claude Opus 4.6
parent c7f6fbc161
commit bbb5321f34
2 changed files with 4 additions and 7 deletions
-3
View File
@@ -1,6 +1,3 @@
[graph]
targets = []
[advisories]
unmaintained = "workspace"
yanked = "deny"
+4 -4
View File
@@ -8,11 +8,11 @@ echo "==> clippy (all warnings)"
cargo clippy --locked --all --benches --tests --examples --all-features -- -D warnings
echo "==> cargo deny"
if command -v cargo-deny &>/dev/null; then
cargo deny check
else
echo "WARN: cargo-deny not installed, skipping (install with: cargo install cargo-deny)"
if ! command -v cargo-deny &>/dev/null; then
echo "ERROR: cargo-deny not installed (install with: cargo install cargo-deny)"
exit 1
fi
cargo deny check
echo "==> tests"
cargo test --locked