docs consolidation, big sln build fixes, new advisories and sprints/tasks
This commit is contained in:
@@ -132,6 +132,7 @@ public sealed class FindingsEvidenceControllerTests
|
||||
|
||||
await db.Database.EnsureCreatedAsync();
|
||||
|
||||
var now = DateTimeOffset.UtcNow;
|
||||
var findingId = Guid.NewGuid();
|
||||
var finding = new TriageFinding
|
||||
{
|
||||
@@ -140,12 +141,15 @@ public sealed class FindingsEvidenceControllerTests
|
||||
AssetLabel = "prod/api-gateway:1.2.3",
|
||||
Purl = "pkg:npm/lodash@4.17.20",
|
||||
CveId = "CVE-2024-12345",
|
||||
LastSeenAt = DateTimeOffset.UtcNow
|
||||
FirstSeenAt = now,
|
||||
LastSeenAt = now,
|
||||
UpdatedAt = now
|
||||
};
|
||||
|
||||
db.Findings.Add(finding);
|
||||
db.RiskResults.Add(new TriageRiskResult
|
||||
{
|
||||
Id = Guid.NewGuid(),
|
||||
FindingId = findingId,
|
||||
PolicyId = "policy-1",
|
||||
PolicyVersion = "1.0.0",
|
||||
@@ -154,15 +158,17 @@ public sealed class FindingsEvidenceControllerTests
|
||||
Verdict = TriageVerdict.Block,
|
||||
Lane = TriageLane.Blocked,
|
||||
Why = "High risk score",
|
||||
ComputedAt = DateTimeOffset.UtcNow
|
||||
ComputedAt = now
|
||||
});
|
||||
db.EvidenceArtifacts.Add(new TriageEvidenceArtifact
|
||||
{
|
||||
Id = Guid.NewGuid(),
|
||||
FindingId = findingId,
|
||||
Type = TriageEvidenceType.Provenance,
|
||||
Title = "SBOM attestation",
|
||||
ContentHash = "sha256:attestation",
|
||||
Uri = "s3://evidence/attestation.json"
|
||||
Uri = "s3://evidence/attestation.json",
|
||||
CreatedAt = now
|
||||
});
|
||||
|
||||
await db.SaveChangesAsync();
|
||||
|
||||
Reference in New Issue
Block a user