feat(ci): export stable bounded SARIF evidence - #62
Conversation
Implementation evidence
The implementation uses only Python's standard library and Structorium's existing atomic writer. No competitor code, SDK, upload credential, or new dependency is introduced. Latest reviewed head: I am leaving this PR open as requested and will treat GitHub CI/Security on this exact head as authoritative. |
CI follow-up: pre-existing flaky review assertion fixedThe first authoritative CI run exposed one failure shared by A narrow second commit now sorts the two prompt paths and joins both generated prompts before asserting cross-batch evidence. The exact regression test passes locally:
This defect existed on Security note: dependency-review job Latest head: |
Final authoritative verificationLatest head:
The Security workflow's aggregate failure is therefore repository configuration, not a source, dependency, secret, or CodeQL failure. The implementation-authoritative CI and security analyzers are green on the exact latest head. PR state: open, unmerged. |
Summary
upload-sarif@v4workflowWhy this is high leverage
Structorium already finds architecture and maintainability defects, but those findings cannot currently participate in GitHub's native code-scanning review surface. This PR closes that delivery gap without adding a runtime dependency or rerunning detectors.
Competitive research and provenance
This is an original Structorium implementation informed by public product patterns, not copied source:
upload-sarif, categories, and fingerprint-based deduplication: https://docs.github.com/en/code-security/code-scanning/integrating-with-code-scanning/uploading-a-sarif-file-to-githubVerification
PYTHONPATH=/tmp/structorium-test-deps python -m pytest -q tests/core/test_sarif.py tests/commands/test_sarif_cmd.py— 5 passedpython -m compileall -q core/sarif.py app/commands/sarif_cmd.py tests/core/test_sarif.py tests/commands/test_sarif_cmd.py— passedgit diff --check— passedSafety
This PR intentionally remains open for review.