We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66959ea commit 834e501Copy full SHA for 834e501
.github/workflows/reusable-cve-scan.yml
@@ -215,6 +215,13 @@ jobs:
215
cp trivy-results.asff trivy-findings.json
216
fi
217
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
225
TOTAL=$(jq 'length' trivy-findings.json)
226
if [ "$TOTAL" -eq 0 ]; then
227
echo "No findings to import into Security Hub"
0 commit comments