26 writes to Outcome
aspire (24)
Npm\NpmProvenanceChecker.cs (11)
34
return new ProvenanceVerificationResult {
Outcome
= ProvenanceVerificationOutcome.AttestationFetchFailed };
42
return new ProvenanceVerificationResult {
Outcome
= ProvenanceVerificationOutcome.AttestationFetchFailed };
52
return new ProvenanceVerificationResult {
Outcome
= parseResult?.Outcome ?? ProvenanceVerificationOutcome.SlsaProvenanceNotFound };
60
Outcome
= parseResult.Value.Outcome,
68
return new ProvenanceVerificationResult {
Outcome
= ProvenanceVerificationOutcome.AttestationParseFailed };
83
Outcome
= ProvenanceVerificationOutcome.SourceRepositoryMismatch,
98
Outcome
= ProvenanceVerificationOutcome.WorkflowMismatch,
113
Outcome
= ProvenanceVerificationOutcome.BuildTypeMismatch,
131
Outcome
= ProvenanceVerificationOutcome.WorkflowRefMismatch,
144
Outcome
= ProvenanceVerificationOutcome.WorkflowRefMismatch,
152
Outcome
= ProvenanceVerificationOutcome.Verified,
Npm\SigstoreNpmProvenanceChecker.cs (13)
56
return new ProvenanceVerificationResult {
Outcome
= ProvenanceVerificationOutcome.AttestationFetchFailed };
62
return new ProvenanceVerificationResult {
Outcome
= attestation.Outcome, Provenance = attestation.Provenance };
241
return new ProvenanceVerificationResult {
Outcome
= ProvenanceVerificationOutcome.AttestationParseFailed };
247
return new ProvenanceVerificationResult {
Outcome
= ProvenanceVerificationOutcome.SourceRepositoryMismatch };
275
return new ProvenanceVerificationResult {
Outcome
= ProvenanceVerificationOutcome.PayloadDecodeFailed };
288
return new ProvenanceVerificationResult {
Outcome
= ProvenanceVerificationOutcome.AttestationParseFailed };
300
return new ProvenanceVerificationResult {
Outcome
= ProvenanceVerificationOutcome.AttestationParseFailed };
319
Outcome
= ProvenanceVerificationOutcome.SourceRepositoryMismatch,
328
Outcome
= ProvenanceVerificationOutcome.WorkflowMismatch,
337
Outcome
= ProvenanceVerificationOutcome.BuildTypeMismatch,
348
Outcome
= ProvenanceVerificationOutcome.WorkflowRefMismatch,
357
Outcome
= ProvenanceVerificationOutcome.WorkflowRefMismatch,
365
Outcome
= ProvenanceVerificationOutcome.Verified,
Aspire.Cli.Tests (2)
Agents\PlaywrightCliInstallerTests.cs (1)
544
Outcome
= ProvenanceOutcome,
TestServices\FakePlaywrightServices.cs (1)
36
Outcome
= ProvenanceVerificationOutcome.Verified,
10 references to Outcome
aspire (2)
Agents\Playwright\PlaywrightCliInstaller.cs (1)
168
provenanceResult.
Outcome
,
Npm\INpmProvenanceChecker.cs (1)
117
public bool IsVerified =>
Outcome
is ProvenanceVerificationOutcome.Verified;
Aspire.Cli.Tests (8)
Agents\NpmProvenanceCheckerTests.cs (3)
163
Assert.Equal(ProvenanceVerificationOutcome.WorkflowRefMismatch, result.
Outcome
);
188
Assert.Equal(ProvenanceVerificationOutcome.Verified, result.
Outcome
);
211
Assert.Equal(ProvenanceVerificationOutcome.Verified, result.
Outcome
);
Agents\SigstoreNpmProvenanceCheckerTests.cs (5)
134
Assert.Equal(ProvenanceVerificationOutcome.Verified, result.
Outcome
);
154
Assert.Equal(ProvenanceVerificationOutcome.SourceRepositoryMismatch, result.
Outcome
);
174
Assert.Equal(ProvenanceVerificationOutcome.WorkflowMismatch, result.
Outcome
);
194
Assert.Equal(ProvenanceVerificationOutcome.BuildTypeMismatch, result.
Outcome
);
215
Assert.Equal(ProvenanceVerificationOutcome.WorkflowRefMismatch, result.
Outcome
);