Files
pruefwerk/compliance-agent
Sharang ParnerkarandClaude Opus 5 f2e6e0ecee
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Canceled after 5m34s
feat(ci): PLC fixtures for the nightly scan regression (#314)
Adds fixtures/nightly/targets.json, a nightly-only manifest in the demo
schema. The demo manifest is compiled into the agent and offered as "Add demo
targets", so a corrupt archive does not belong there. The harness onboards
these fixtures itself through the public API (create, upload, detect, optional
`enabled_scans`, scan).

- plc-codesys-synthetic: a 2 KB .projectarchive with real CODESYS entry naming
  and an old runtime (3.5.16.0). The 6-component SBOM is exact, and the NVD CPE
  match yields 70 CVEs (at least).
- plc-codesys-proemion: the real Proemion CSV-BlackBox archive (Apache-2.0,
  37 components). Not committed (~10 MB): the workflow fetches it at a pinned
  commit and sha256 into NIGHTLY_CODESYS_SAMPLE.
- plc-ladder: a PLCopen Ladder Diagram (LD → ST translation) with planted
  Modbus-without-auth, FTP on 21 and a credential literal.
- plc-live-endpoint: ST plus a modbus:// endpoint with the opt-in ICS probe
  on. Under source_only the probe is recorded as skipped and nothing is
  contacted.
- plc-corrupt-archive: must fail cleanly.

Fixed on the way: a declared CODESYS archive that is not a readable zip used
to complete with an empty SBOM, as if nothing were wrong. The run now records a
`plc_archive_sbom` skipped stage with the reason (`plc::sbom::check_archive`).

The workflow also passes an optional NIGHTLY_NVD_API_KEY, because NVD
rate-limits unauthenticated clients.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
2026-09-21 23:31:11 +02:00
..