Files
git.stella-ops.org/docs/features/unchecked/cli/scan-snapshot-compare-cli.md

23 lines
915 B
Markdown

# Scan Snapshot Compare CLI
## Module
Cli
## Status
IMPLEMENTED
## Description
Compare two scan snapshots by digest producing structured security state diffs with severity filtering and multiple output formats (table, JSON, SARIF).
## Implementation Details
- **Command Group**: `src/Cli/StellaOps.Cli/Commands/Compare/CompareCommandBuilder.cs` -- `CompareCommandBuilder` for compare operations
- **Commands**:
- `stella compare <old-digest> <new-digest>` -- compare scan snapshots. Options: `--severity critical|high|medium|low`, `--format table|json|sarif`, `--output <path>`
## E2E Test Plan
- [ ] Run `stella compare sha256:old sha256:new` and verify diff output
- [ ] Run with `--severity critical` and verify severity filtering
- [ ] Run with `--format sarif` and verify SARIF output
- [ ] Run with `--format json` and verify structured diff
- [ ] Verify new/removed/changed vulnerabilities identified