veza/tmt/tests/services/rust_audit.sh

23 lines
420 B
Bash
Raw Normal View History

#!/bin/bash
set -e
REPO_ROOT=$(git rev-parse --show-toplevel)
STREAM_DIR="$REPO_ROOT/veza-stream-server"
echo "Rust Security Audit (cargo audit)"
if ! command -v cargo-audit &>/dev/null; then
echo "Installing cargo-audit..."
cargo install cargo-audit
fi
if [ -d "$STREAM_DIR" ]; then
cd "$STREAM_DIR"
cargo audit
else
echo "Stream Server directory not found!"
exit 1
fi
echo "Audit passed."