26 instantiations of ProvenanceVerificationResult
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 };
58
return new
ProvenanceVerificationResult
68
return new
ProvenanceVerificationResult
{ Outcome = ProvenanceVerificationOutcome.AttestationParseFailed };
81
return new
ProvenanceVerificationResult
96
return new
ProvenanceVerificationResult
111
return new
ProvenanceVerificationResult
129
return new
ProvenanceVerificationResult
142
return new
ProvenanceVerificationResult
150
return new
ProvenanceVerificationResult
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 };
317
return new
ProvenanceVerificationResult
326
return new
ProvenanceVerificationResult
335
return new
ProvenanceVerificationResult
346
return new
ProvenanceVerificationResult
355
return new
ProvenanceVerificationResult
363
return new
ProvenanceVerificationResult
Aspire.Cli.Tests (2)
Agents\PlaywrightCliInstallerTests.cs (1)
542
return Task.FromResult(new
ProvenanceVerificationResult
TestServices\FakePlaywrightServices.cs (1)
34
=> Task.FromResult(new
ProvenanceVerificationResult
18 references to ProvenanceVerificationResult
aspire (8)
Agents\Playwright\PlaywrightCliInstaller.cs (1)
151
var
provenanceResult = await provenanceChecker.VerifyProvenanceAsync(
Npm\INpmProvenanceChecker.cs (2)
192
/// <returns>A <see cref="
ProvenanceVerificationResult
"/> indicating the outcome and any extracted provenance data.</returns>
193
Task<
ProvenanceVerificationResult
> VerifyProvenanceAsync(string packageName, string version, string expectedSourceRepository, string expectedWorkflowPath, string expectedBuildType, Func<WorkflowRefInfo, bool>? validateWorkflowRef, CancellationToken cancellationToken, string? sriIntegrity = null);
Npm\NpmProvenanceChecker.cs (1)
19
public async Task<
ProvenanceVerificationResult
> VerifyProvenanceAsync(string packageName, string version, string expectedSourceRepository, string expectedWorkflowPath, string expectedBuildType, Func<WorkflowRefInfo, bool>? validateWorkflowRef, CancellationToken cancellationToken, string? sriIntegrity = null)
Npm\SigstoreNpmProvenanceChecker.cs (4)
43
public async Task<
ProvenanceVerificationResult
> VerifyProvenanceAsync(
65
var
sigstoreFailure = await VerifySigstoreBundleAsync(
224
private async Task<
ProvenanceVerificationResult
?> VerifySigstoreBundleAsync(
308
internal static
ProvenanceVerificationResult
VerifyProvenanceFields(
Aspire.Cli.Tests (10)
Agents\NpmProvenanceCheckerTests.cs (3)
153
var
result = await checker.VerifyProvenanceAsync(
178
var
result = await checker.VerifyProvenanceAsync(
202
var
result = await checker.VerifyProvenanceAsync(
Agents\PlaywrightCliInstallerTests.cs (1)
539
public Task<
ProvenanceVerificationResult
> VerifyProvenanceAsync(string packageName, string version, string expectedSourceRepository, string expectedWorkflowPath, string expectedBuildType, Func<WorkflowRefInfo, bool>? validateWorkflowRef, CancellationToken cancellationToken, string? sriIntegrity = null)
Agents\SigstoreNpmProvenanceCheckerTests.cs (5)
127
var
result = SigstoreNpmProvenanceChecker.VerifyProvenanceFields(
147
var
result = SigstoreNpmProvenanceChecker.VerifyProvenanceFields(
167
var
result = SigstoreNpmProvenanceChecker.VerifyProvenanceFields(
187
var
result = SigstoreNpmProvenanceChecker.VerifyProvenanceFields(
208
var
result = SigstoreNpmProvenanceChecker.VerifyProvenanceFields(
TestServices\FakePlaywrightServices.cs (1)
33
public Task<
ProvenanceVerificationResult
> VerifyProvenanceAsync(string packageName, string version, string expectedSourceRepository, string expectedWorkflowPath, string expectedBuildType, Func<WorkflowRefInfo, bool>? validateWorkflowRef, CancellationToken cancellationToken, string? sriIntegrity = null)