action summary

This commit is contained in:
ychangkim
2026-07-22 17:40:19 +09:00
parent a992b2e12a
commit d6183e98c7
+12 -1
View File
@@ -198,7 +198,18 @@ jobs:
print(json.dumps(results, indent=2))
PY
cat "$OUT_DIR/cve-summary.json" >> "$GITHUB_STEP_SUMMARY"
python3 -c '
import json, os, sys
with open(sys.argv[1]) as f:
data = json.load(f)
print("### 🛡️ CVE 스캔 결과 요약\n")
print("| Catalog | Version | Image | Critical | High | Medium | Low | Summary |")
print("| --- | --- | --- | --- | --- | --- | --- | --- |")
for item in data:
summary = item.get("summary", "").replace("|", "\\|")
print(f"| {item.get(\"catalog\", \"-\")} | {item.get(\"version\", \"-\")} | `{item.get(\"image\", \"-\")}` | {item.get(\"critical\", 0)} | {item.get(\"high\", 0)} | {item.get(\"medium\", 0)} | {item.get(\"low\", 0)} | {summary} |")
' "$OUT_DIR/cve-summary.json" >> "$GITHUB_STEP_SUMMARY"
- name: CVE 스캔 결과 전송
if: always()