Uploaded source archives get no SAST, secret or package-SBOM scan #325

Closed
opened 2026-09-21 21:51:51 +00:00 by sharang · 0 comments
Owner

Part of #309. Found with the #313 firmware fixtures.

SAST, secret detection and the package SBOM only run when a target's code artifact is a git repository. For an uploaded source archive (a zip or tarball, which is how firmware sources usually arrive), the orchestrator logs "source-archive scanning not yet wired" and skips them. The only thing the run produces is the firmware SBOM from ingest. It then completes with no findings and, before #313, no skipped stage to say why.

The ingest step already extracts the archive into a work directory, so the pipeline has a path to run on.

Expected: an uploaded source archive gets the same SAST, secret and package-SBOM stages as a git repo, minus the git-only parts (history, blame, commit sha).

Acceptance:

  • The firmware fixtures in fixtures/nightly/firmware/ and a plain source-archive fixture produce findings, and the nightly asserts them.
  • Until then, the run records a code_scan skipped stage. #313 adds that so the gap is visible in the scan run and the evidence.
Part of #309. Found with the #313 firmware fixtures. SAST, secret detection and the package SBOM only run when a target's code artifact is a **git repository**. For an uploaded source archive (a zip or tarball, which is how firmware sources usually arrive), the orchestrator logs "source-archive scanning not yet wired" and skips them. The only thing the run produces is the firmware SBOM from ingest. It then completes with no findings and, before #313, no skipped stage to say why. The ingest step already extracts the archive into a work directory, so the pipeline has a path to run on. **Expected:** an uploaded source archive gets the same SAST, secret and package-SBOM stages as a git repo, minus the git-only parts (history, blame, commit sha). **Acceptance:** - The firmware fixtures in `fixtures/nightly/firmware/` and a plain source-archive fixture produce findings, and the nightly asserts them. - Until then, the run records a `code_scan` skipped stage. #313 adds that so the gap is visible in the scan run and the evidence.
sharang added this to the Production MVP milestone 2026-09-21 21:51:51 +00:00
sharang added the bug label 2026-09-21 21:51:51 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#325