Audit all pinned dependencies and preserve release evidence
myfileagent-python-ci/pipeline/head This commit looks good

This commit is contained in:
Codex
2026-11-07 21:44:33 +00:00
parent c1cd3ad9af
commit 88f3bb0d0a
4 changed files with 17 additions and 8 deletions
+2 -1
View File
@@ -10,6 +10,7 @@ set +e
docker start -a "$scanner" > secret-report.json
result=$?
set -e
python3 -c 'import json; p=json.load(open("secret-report.json")); print("Secret findings:",sum(len(r.get("Secrets",[])) for r in p.get("Results",[])))'
mkdir -p reports
SCAN_EXIT="$result" python3 -c 'import datetime,json,os; p=json.load(open("secret-report.json")); n=sum(len(r.get("Secrets",[])) for r in p.get("Results",[])); summary={"scanner":"Trivy 0.69.1", "scope":"checked-out repository excluding Git metadata, temporary test environment and generated reports", "findings":n, "exit_code":int(os.environ["SCAN_EXIT"]), "timestamp_utc":datetime.datetime.now(datetime.timezone.utc).isoformat()}; json.dump(summary,open("reports/secret-scan-summary.json","w"),indent=2); print("Secret findings:",n)'
echo "Secret scanner exit status: $result"
exit "$result"