8 writes to Outcome
aspire (8)
Npm\SigstoreNpmProvenanceChecker.cs (8)
120
return new NpmAttestationParseResult {
Outcome
= ProvenanceVerificationOutcome.AttestationParseFailed };
126
return new NpmAttestationParseResult {
Outcome
= ProvenanceVerificationOutcome.SlsaProvenanceNotFound };
140
return new NpmAttestationParseResult {
Outcome
= ProvenanceVerificationOutcome.SlsaProvenanceNotFound };
148
Outcome
= ProvenanceVerificationOutcome.PayloadDecodeFailed,
162
Outcome
= ProvenanceVerificationOutcome.PayloadDecodeFailed,
172
Outcome
= ProvenanceVerificationOutcome.AttestationParseFailed,
183
Outcome
= outcome,
189
return new NpmAttestationParseResult {
Outcome
= ProvenanceVerificationOutcome.SlsaProvenanceNotFound };
7 references to Outcome
aspire (2)
Npm\SigstoreNpmProvenanceChecker.cs (2)
60
if (attestation.
Outcome
is not ProvenanceVerificationOutcome.Verified)
62
return new ProvenanceVerificationResult { Outcome = attestation.
Outcome
, Provenance = attestation.Provenance };
Aspire.Cli.Tests (5)
Agents\SigstoreNpmProvenanceCheckerTests.cs (5)
17
Assert.Equal(ProvenanceVerificationOutcome.Verified, result.
Outcome
);
46
Assert.Equal(ProvenanceVerificationOutcome.SlsaProvenanceNotFound, result.
Outcome
);
56
Assert.Equal(ProvenanceVerificationOutcome.SlsaProvenanceNotFound, result.
Outcome
);
64
Assert.Equal(ProvenanceVerificationOutcome.AttestationParseFailed, result.
Outcome
);
85
Assert.Equal(ProvenanceVerificationOutcome.PayloadDecodeFailed, result.
Outcome
);