From a52893bcc055edd6ba7775e456deb1d70452acff Mon Sep 17 00:00:00 2001 From: pxp928 Date: Tue, 13 Aug 2024 10:41:14 -0400 Subject: [PATCH] expose hasSBOM and hasSLSA IDs Signed-off-by: pxp928 --- pkg/assembler/clients/helpers/bulk.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/assembler/clients/helpers/bulk.go b/pkg/assembler/clients/helpers/bulk.go index ceed17607c..803693215f 100644 --- a/pkg/assembler/clients/helpers/bulk.go +++ b/pkg/assembler/clients/helpers/bulk.go @@ -29,8 +29,8 @@ import ( ) type AssemblerIngestedIDs struct { - hasSBOMIDs []string - hasSLSAIDs []string + HasSBOMIDs []string + HasSLSAIDs []string } func GetBulkAssembler(ctx context.Context, logger *zap.SugaredLogger, gqlclient graphql.Client) func([]assembler.AssemblerInput) (*AssemblerIngestedIDs, error) { @@ -606,7 +606,7 @@ func ingestHasSLSAs(ctx context.Context, client graphql.Client, hs []assembler.H if err != nil { return fmt.Errorf("SLSAForArtifacts failed with error: %w", err) } - ingestedIDs.hasSLSAIDs = append(ingestedIDs.hasSLSAIDs, hasSLSAArtResponse.IngestSLSAs...) + ingestedIDs.HasSLSAIDs = append(ingestedIDs.HasSLSAIDs, hasSLSAArtResponse.IngestSLSAs...) } return nil } @@ -757,14 +757,14 @@ func ingestHasSBOMs(ctx context.Context, client graphql.Client, hs []assembler.H if err != nil { return fmt.Errorf("hasSBOMArtifacts failed with error: %w", err) } - ingestedIDs.hasSBOMIDs = append(ingestedIDs.hasSBOMIDs, hasSBOMArtResponse.IngestHasSBOMs...) + ingestedIDs.HasSBOMIDs = append(ingestedIDs.HasSBOMIDs, hasSBOMArtResponse.IngestHasSBOMs...) } if len(pkgIDs) > 0 { hasSBOMPkgResponse, err := model.IngestHasSBOMPkgs(ctx, client, pkgIDs, pkgSBOMs, pkgIncludes) if err != nil { return fmt.Errorf("hasSBOMPkgs failed with error: %w", err) } - ingestedIDs.hasSBOMIDs = append(ingestedIDs.hasSBOMIDs, hasSBOMPkgResponse.IngestHasSBOMs...) + ingestedIDs.HasSBOMIDs = append(ingestedIDs.HasSBOMIDs, hasSBOMPkgResponse.IngestHasSBOMs...) } return nil }