finish off sprint advisories and sprints
This commit is contained in:
@@ -139,6 +139,7 @@ internal static partial class CommandHandlers
|
||||
/// <summary>
|
||||
/// Handler for `witness list` command.
|
||||
/// Sprint: SPRINT_20260112_014_CLI_witness_commands (CLI-WIT-002)
|
||||
/// Sprint: SPRINT_20260122_038_Scanner_ebpf_probe_type (EBPF-003)
|
||||
/// </summary>
|
||||
internal static async Task HandleWitnessListAsync(
|
||||
IServiceProvider services,
|
||||
@@ -146,6 +147,7 @@ internal static partial class CommandHandlers
|
||||
string? vuln,
|
||||
string? tier,
|
||||
bool reachableOnly,
|
||||
string? probeType,
|
||||
string format,
|
||||
int limit,
|
||||
bool verbose,
|
||||
@@ -158,6 +160,7 @@ internal static partial class CommandHandlers
|
||||
console.MarkupLine($"[dim]Listing witnesses for scan: {scanId}[/]");
|
||||
if (vuln != null) console.MarkupLine($"[dim]Filtering by vuln: {vuln}[/]");
|
||||
if (tier != null) console.MarkupLine($"[dim]Filtering by tier: {tier}[/]");
|
||||
if (probeType != null) console.MarkupLine($"[dim]Filtering by probe type: {probeType}[/]");
|
||||
if (reachableOnly) console.MarkupLine("[dim]Showing reachable witnesses only[/]");
|
||||
}
|
||||
|
||||
@@ -168,6 +171,7 @@ internal static partial class CommandHandlers
|
||||
{
|
||||
ScanId = scanId,
|
||||
VulnerabilityId = vuln,
|
||||
ProbeType = probeType,
|
||||
Limit = limit
|
||||
};
|
||||
|
||||
@@ -182,7 +186,8 @@ internal static partial class CommandHandlers
|
||||
PackageName = ExtractPackageName(w.ComponentPurl),
|
||||
ConfidenceTier = tier ?? "N/A",
|
||||
Entrypoint = w.Entrypoint ?? "N/A",
|
||||
Sink = w.Sink ?? "N/A"
|
||||
Sink = w.Sink ?? "N/A",
|
||||
ProbeType = w.ProbeType
|
||||
})
|
||||
.OrderBy(w => w.CveId, StringComparer.Ordinal)
|
||||
.ThenBy(w => w.WitnessId, StringComparer.Ordinal)
|
||||
@@ -527,5 +532,7 @@ internal static partial class CommandHandlers
|
||||
public required string ConfidenceTier { get; init; }
|
||||
public required string Entrypoint { get; init; }
|
||||
public required string Sink { get; init; }
|
||||
// EBPF-003: Add probe type field for eBPF filtering
|
||||
public string? ProbeType { get; init; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user