Skip to content

Commit d76c62a

Browse files
committed
feat: export findings to securityhub
1 parent 834e501 commit d76c62a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/reusable-cve-scan.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,10 @@ jobs:
214214
else
215215
cp trivy-results.asff trivy-findings.json
216216
fi
217+
218+
# Fix ProductName to match Security Hub expectations
219+
jq 'map(.ProductName = "Aqua Security")' trivy-findings.json > trivy-findings-fixed.json
220+
mv trivy-findings-fixed.json trivy-findings.json
217221
218222
# Debug: print a summary of the findings being sent to Security Hub
219223
echo "=== Debug: trivy-findings.json (first 2 findings) ==="

0 commit comments

Comments
 (0)