Some checks failed
Docs CI / lint-and-preview (push) Has been cancelled
- Added MongoPackRunApprovalStore for managing approval states with MongoDB. - Introduced MongoPackRunArtifactUploader for uploading and storing artifacts. - Created MongoPackRunLogStore to handle logging of pack run events. - Developed MongoPackRunStateStore for persisting and retrieving pack run states. - Implemented unit tests for MongoDB stores to ensure correct functionality. - Added MongoTaskRunnerTestContext for setting up MongoDB test environment. - Enhanced PackRunStateFactory to correctly initialize state with gate reasons.
26 lines
681 B
C#
26 lines
681 B
C#
using System;
|
|
|
|
namespace StellaOps.Scanner.Sbomer.BuildXPlugin.Surface;
|
|
|
|
internal sealed record SurfaceOptions(
|
|
string CacheRoot,
|
|
string CacheBucket,
|
|
string RootPrefix,
|
|
string Tenant,
|
|
string Component,
|
|
string ComponentVersion,
|
|
string WorkerInstance,
|
|
int Attempt,
|
|
string ImageDigest,
|
|
string? ScanId,
|
|
string? LayerFragmentsPath,
|
|
string? EntryTraceGraphPath,
|
|
string? EntryTraceNdjsonPath,
|
|
string? ManifestOutputPath)
|
|
{
|
|
public bool HasArtifacts =>
|
|
!string.IsNullOrWhiteSpace(LayerFragmentsPath) ||
|
|
!string.IsNullOrWhiteSpace(EntryTraceGraphPath) ||
|
|
!string.IsNullOrWhiteSpace(EntryTraceNdjsonPath);
|
|
}
|