Skip to content

feat(report): vendor report_integrity_check gate + CI self-test - #108

Open
hugomassie-debug wants to merge 1 commit into
cskwork:mainfrom
hugomassie-debug:feat/report-integrity-check-gate
Open

hugomassie-debug wants to merge 1 commit into
cskwork:mainfrom
hugomassie-debug:feat/report-integrity-check-gate

Conversation

@hugomassie-debug

Copy link
Copy Markdown

Summary

  • Vendor scripts/report_integrity_check.py: a stdlib-only integrity gate for pentest report bundles.
  • Add a CI self-test step that proves the gate fails on a malformed report and passes a well-formed one.

What the gate catches

  • Claimed finding total (**N temuan**) != number of finding IDs (PREFIX-1..N)
  • Finding IDs with no detail section
  • Duplicate coverage lines
  • Appendix/CVSS table drift vs detail sections

Verification (local, this tree)

go build ./...          # exit 0
gate bad report         # exit 1 (caught)
gate good report        # PASS
trufflehog (both files) # 0 secrets

Stand-alone: no Go code touched, no dependencies, python3 stdlib only.

Checklist

  • Self-test added to CI (backend job)
  • No new dependencies
  • Secret scan clean
  • CI green

- scripts/report_integrity_check.py: vendored (MIT, stdlib-only) integrity gate
  for pentest report bundles; catches claimed-total != finding ids, missing
  detail sections, stale totals, duplicate coverage lines, appendix/CVSS drift.
- ci.yml: self-test the gate so a broken gate cannot silently stop blocking
  (must fail on a bad report, PASS on a well-formed one).
cskwork added a commit that referenced this pull request Nov 18, 2026
fix(report): reject inconsistent report bundles

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant