We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5907f0 commit 6ec8602Copy full SHA for 6ec8602
1 file changed
.github/workflows/reusable-trufflehog.yml
@@ -188,6 +188,23 @@ jobs:
188
fi
189
} > trufflehog_scan.txt
190
191
+ - name: Verify JSON file exists
192
+ if: always()
193
+ run: |
194
+ if [[ -f "results.json" ]]; then
195
+ echo "✅ results.json exists"
196
+ echo "File size: $(wc -c < results.json) bytes"
197
+ echo "JSON validity check:"
198
+ if jq empty results.json 2>/dev/null; then
199
+ echo "✅ Valid JSON"
200
+ echo "Number of findings: $(jq '. | length' results.json)"
201
+ else
202
+ echo "❌ Invalid JSON"
203
+ fi
204
205
+ echo "❌ results.json does not exist"
206
207
+
208
- name: Upload scan results
209
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
210
if: always()
0 commit comments