Skip to content

Commit 834e501

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

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,13 @@ jobs:
215215
cp trivy-results.asff trivy-findings.json
216216
fi
217217
218+
# Debug: print a summary of the findings being sent to Security Hub
219+
echo "=== Debug: trivy-findings.json (first 2 findings) ==="
220+
jq '.[0:2]' trivy-findings.json || true
221+
222+
echo "=== Debug: total findings ==="
223+
jq 'length' trivy-findings.json || true
224+
218225
TOTAL=$(jq 'length' trivy-findings.json)
219226
if [ "$TOTAL" -eq 0 ]; then
220227
echo "No findings to import into Security Hub"

0 commit comments

Comments
 (0)