Repository navigation
feat(compliance): restore initial compliance-scanning integration - #9587
Robert Wojciechowski (robertwoj-microsoft) wants to merge 13 commits into
Conversation
Windows Unit Test Results 3 files 21 suites 1m 8s ⏱️ Results for commit f552357. ♻️ This comment has been updated with latest results. |
AgentBaker gate detectiveRun: 183320423 |
Bump kompli and the Ubuntu 22.04/24.04 benchmark packages to build 189335935. kompli now requires version and versionConstraint in every plan block, so both committed plans were regenerated with the pinned binary from the matching definitions. Rule IDs are unchanged; parameters now carry the definition defaults. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ions Stage only the definitions the committed plan references, from exactly the pinned package versions, and upload a validated snapshot. On the scan VM, install them exclusively under root-owned parents, run the plan once and return the result, log and exit status separately. Render JUnit only after a successful run into a per-run directory that is the only publish source; the scan stays non-blocking. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Split each Ubuntu plan into L1 and L2-only expected-compliant and expected-non-compliant sets plus manual rules, following the CIS-CAT regression baselines and the definitions' level tags. Run every plan once in a single scan VM invocation, continuing after failures; upload result and log before the status blob so a present status proves a complete transfer. Render one JUnit per successful plan, restricted to that plan's rules. Fix the plan validation, which rejected every well-formed plan. Add ShellSpec coverage for both scripts. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Replace the RETURN traps in run_kompli_scan with a wrapper that runs cleanup after the scan body: with functrace enabled the traps fired when nested functions returned and removed the input snapshots mid-scan. Identify the held definition descriptor via /dev/fd so the install also works in subshells. In the specs, replace definitions without reusing their inode and assert the actual stdout and stderr of every kompli example. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Preserve deferred test setup and input validation while satisfying both lint passes. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> # Conflicts: # vhdbuilder/packer/vhd-scanning.sh
|
Initial integration of new build-time compliance scanning.