fix: inline python script in security check

This commit is contained in:
root 2026-03-29 08:36:07 +00:00
parent 9fb0874812
commit 106bc8920c

View File

@ -96,12 +96,7 @@ jobs:
# Parse and display results # Parse and display results
if [ -s audit-results.json ] && [ "$(cat audit-results.json)" != "[]" ]; then if [ -s audit-results.json ] && [ "$(cat audit-results.json)" != "[]" ]; then
echo "❌ Found vulnerabilities in production dependencies:" echo "❌ Found vulnerabilities in production dependencies:"
uv run python -c " uv run python -c 'import json; data=json.load(open("audit-results.json")); [print(f" - {v.get(\"name\", \"unknown\")} {v.get(\"version\", \"\")}: {v.get(\"id\", \"\")}") for v in data]'
import json
data = json.load(open('audit-results.json'))
for vuln in data:
print(f\" - {vuln.get('name', 'unknown')} {vuln.get('version', '')}: {vuln.get('id', '')}\")
"
exit 1 exit 1
else else
echo "✅ No vulnerabilities in production dependencies" echo "✅ No vulnerabilities in production dependencies"