26 writes to Outcome
aspire (22)
Agents\AspireSkills\GitHubArtifactAttestationVerifier.cs (8)
53
return new ProvenanceVerificationResult {
Outcome
= ProvenanceVerificationOutcome.AttestationFetchFailed };
61
return new ProvenanceVerificationResult {
Outcome
= ProvenanceVerificationOutcome.AttestationFetchFailed };
69
Outcome
= parseFailed
83
return new ProvenanceVerificationResult {
Outcome
= ProvenanceVerificationOutcome.AttestationParseFailed };
89
return new ProvenanceVerificationResult {
Outcome
= ProvenanceVerificationOutcome.SourceRepositoryMismatch };
110
return new ProvenanceVerificationResult {
Outcome
= ProvenanceVerificationOutcome.AttestationParseFailed };
117
return new ProvenanceVerificationResult {
Outcome
= ProvenanceVerificationOutcome.AttestationParseFailed };
130
return new ProvenanceVerificationResult {
Outcome
= ProvenanceVerificationOutcome.AttestationParseFailed };
Npm\SigstoreNpmProvenanceChecker.cs (14)
76
return new ProvenanceVerificationResult {
Outcome
= ProvenanceVerificationOutcome.AttestationFetchFailed };
89
Outcome
= outcome
101
return new ProvenanceVerificationResult {
Outcome
= ProvenanceVerificationOutcome.AttestationParseFailed };
126
return new ProvenanceVerificationResult {
Outcome
= subjectOutcome };
134
return new ProvenanceVerificationResult {
Outcome
= ProvenanceVerificationOutcome.AttestationParseFailed };
255
return (new ProvenanceVerificationResult {
Outcome
= ProvenanceVerificationOutcome.SourceRepositoryMismatch }, null);
275
return (new ProvenanceVerificationResult {
Outcome
= ProvenanceVerificationOutcome.AttestationParseFailed }, null);
287
return (new ProvenanceVerificationResult {
Outcome
= ProvenanceVerificationOutcome.AttestationParseFailed }, null);
469
Outcome
= ProvenanceVerificationOutcome.SourceRepositoryMismatch,
478
Outcome
= ProvenanceVerificationOutcome.WorkflowMismatch,
487
Outcome
= ProvenanceVerificationOutcome.BuildTypeMismatch,
498
Outcome
= ProvenanceVerificationOutcome.WorkflowRefMismatch,
507
Outcome
= ProvenanceVerificationOutcome.WorkflowRefMismatch,
515
Outcome
= ProvenanceVerificationOutcome.Verified,
Aspire.Cli.Tests (4)
Agents\AspireSkillsInstallerTests.cs (2)
1761
Result = new ProvenanceVerificationResult {
Outcome
= ProvenanceVerificationOutcome.WorkflowMismatch }
2228
Outcome
= ProvenanceVerificationOutcome.Verified,
Agents\PlaywrightCliInstallerTests.cs (1)
1052
Outcome
= ProvenanceOutcome,
TestServices\FakePlaywrightServices.cs (1)
39
Outcome
= ProvenanceVerificationOutcome.Verified,
21 references to Outcome
aspire (5)
Agents\AspireSkills\AspireSkillsInstaller.cs (1)
245
provenanceResult.
Outcome
));
Agents\Playwright\PlaywrightCliInstaller.cs (2)
231
provenanceResult.
Outcome
,
233
return (PlaywrightInstallStatus.Failed, string.Format(CultureInfo.CurrentCulture, AgentCommandStrings.PlaywrightCliInstaller_ProvenanceVerificationFailed, NpmPackageInfo.FormatPackageSpecifier(PackageName, packageInfo.Version), provenanceResult.
Outcome
));
Npm\INpmProvenanceChecker.cs (1)
127
public bool IsVerified =>
Outcome
is ProvenanceVerificationOutcome.Verified;
Npm\SigstoreNpmProvenanceChecker.cs (1)
141
_logger.LogDebug("Provenance verification for {PackageSpecifier} completed with outcome {Outcome}", NpmPackageInfo.FormatPackageSpecifier(packageName, version), result.
Outcome
);
Aspire.Cli.Tests (16)
Agents\SigstoreNpmProvenanceCheckerTests.cs (16)
140
Assert.Equal(Enum.Parse<ProvenanceVerificationOutcome>(expectedOutcome), result.
Outcome
);
151
Assert.Equal(ProvenanceVerificationOutcome.WorkflowMismatch, result.
Outcome
);
302
Assert.Equal(ProvenanceVerificationOutcome.Verified, result.
Outcome
);
325
Assert.Equal(ProvenanceVerificationOutcome.Verified, result.
Outcome
);
355
Assert.Equal(Enum.Parse<ProvenanceVerificationOutcome>(expectedOutcome), result.
Outcome
);
375
Assert.Equal(ProvenanceVerificationOutcome.SourceRepositoryMismatch, result.
Outcome
);
395
Assert.Equal(ProvenanceVerificationOutcome.WorkflowMismatch, result.
Outcome
);
415
Assert.Equal(ProvenanceVerificationOutcome.BuildTypeMismatch, result.
Outcome
);
436
Assert.Equal(ProvenanceVerificationOutcome.WorkflowRefMismatch, result.
Outcome
);
713
Assert.Equal(ProvenanceVerificationOutcome.Verified, result.
Outcome
);
717
Assert.Equal(ProvenanceVerificationOutcome.SourceRepositoryMismatch, result.
Outcome
);
742
Assert.Equal(ProvenanceVerificationOutcome.WorkflowMismatch, result.
Outcome
);
770
Assert.Equal(ProvenanceVerificationOutcome.WorkflowRefMismatch, result.
Outcome
);
791
Assert.Equal(ProvenanceVerificationOutcome.WorkflowRefMismatch, result.
Outcome
);
818
Assert.Equal(ProvenanceVerificationOutcome.BuildTypeMismatch, result.
Outcome
);
838
Assert.Equal(ProvenanceVerificationOutcome.BuildTypeMismatch, result.
Outcome
);