2.4 KiB
2.4 KiB
CLI Scan Command Consolidation
Module
Cli
Status
VERIFIED
Description
Unified stella scan command hub with run/download/workers/graph/secrets/image subcommands, consolidating previously separate scanning commands.
Implementation Details
- Command Group:
src/Cli/StellaOps.Cli/Commands/Scan/-- consolidated scan command directory - Scan Graph:
src/Cli/StellaOps.Cli/Commands/ScanGraphCommandGroup.cs-- scan graph commands - Scanner Executor:
src/Cli/StellaOps.Cli/Services/ScannerExecutor.cs/IScannerExecutor.cs-- scanner execution service - Scanner Installer:
src/Cli/StellaOps.Cli/Services/ScannerInstaller.cs/IScannerInstaller.cs-- scanner installation - Commands:
stella scan run <image>-- run a vulnerability scan. Options:--policy <file>,--format json|table|sarif,--sbom-format cdx|spdxstella scan download-- download scanner binariesstella scan workers-- manage scanner workersstella scan graph-- scan graph operationsstella scan secrets <path>-- secrets scanningstella scan image <image>-- image-specific scanning
- Tests:
src/Cli/__Tests/StellaOps.Cli.Tests/GoldenOutput/ScanCommandGoldenTests.cs,ScanCommandGoldenOutputTests.cs,ScannerDownloadVerifyTests.cs,ScannerWorkersCommandTests.cs
E2E Test Plan
- Run
stella scan run myregistry/app:v1.0and verify scan execution with results - Run
stella scan run --format sarif --output ./results.sarifand verify SARIF output - Run
stella scan downloadand verify scanner binary download - Run
stella scan workers listand verify worker status - Run
stella scan secrets ./srcand verify secrets scanning - Run
stella scan image myregistry/app:v1.0and verify image scanning - Verify golden output tests pass for scan commands
- Verify exit codes: 0=clean, 1=vulnerabilities found, 2=error
Verification
- Verified: 2026-02-13T15:30:00Z
- Tier 0 (Source): pass -- all referenced source files exist on disk
- Tier 1 (Build): pass -- module builds cleanly, 412 tests pass in StellaOps.Cli.Commands.Tests
- Tier 2d (Integration): pass -- targeted integration tests confirm behavioral correctness
- Test Project:
src/Cli/__Tests/StellaOps.Cli.Commands.Tests/StellaOps.Cli.Commands.Tests.csproj - Evidence:
docs/qa/feature-checks/runs/cli/cli-scan-command-consolidation/run-001/tier2-integration-check.json