Skip to content

Commit 617c489

Browse files
ci: reject notebook audit command failures
1 parent dd0c753 commit 617c489

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎.github/workflows/dependency-security.yml‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,13 @@ jobs:
7777
run: |
7878
npm install --global pnpm@10.28.2
7979
# The checker handles the exact known unpatched finding and blocks all others.
80-
if pnpm --dir livekit-rtc/jupyter-html audit --json > "$RUNNER_TEMP/notebook-audit.json"; then
80+
audit_status=0
81+
pnpm --dir livekit-rtc/jupyter-html audit --json > "$RUNNER_TEMP/notebook-audit.json" || audit_status=$?
82+
if [ "$audit_status" -gt 1 ]; then
83+
echo "::error::Notebook audit failed with exit status $audit_status"
84+
exit "$audit_status"
85+
fi
86+
if [ "$audit_status" -eq 0 ]; then
8187
echo "Notebook audit has no findings"
8288
fi
8389
python scripts/check_notebook_audit.py "$RUNNER_TEMP/notebook-audit.json"

0 commit comments

Comments
 (0)