From 1e4185be8f482e13da397b899dd90051c52e8db8 Mon Sep 17 00:00:00 2001 From: Stuart Douglas Date: Tue, 28 Nov 2023 19:02:38 +1100 Subject: [PATCH] Minor fix --- pkg/reconciler/dependencybuild/dependencybuild.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/reconciler/dependencybuild/dependencybuild.go b/pkg/reconciler/dependencybuild/dependencybuild.go index 1c0c8b4a9..2ced02e03 100644 --- a/pkg/reconciler/dependencybuild/dependencybuild.go +++ b/pkg/reconciler/dependencybuild/dependencybuild.go @@ -650,7 +650,6 @@ func (r *ReconcileDependencyBuild) handleBuildPipelineRunReceived(ctx context.Co var digest string var passedVerification bool var verificationResults string - var gavs []string var hermeticBuildImage string var deployed []string for _, i := range pr.Status.Results { @@ -676,6 +675,8 @@ func (r *ReconcileDependencyBuild) handleBuildPipelineRunReceived(ctx context.Co } else if i.Name == artifactbuild.PipelineResultDeployedResources && len(i.Value.StringVal) > 0 { //we need to create 'DeployedArtifact' resources for the objects that were deployed deployed = strings.Split(i.Value.StringVal, ",") + } else if i.Name == artifactbuild.PipelineResultHermeticBuildImage { + hermeticBuildImage = i.Value.StringVal } } err = r.createRebuiltArtifacts(ctx, log, pr, db, image, digest, deployed) @@ -688,7 +689,7 @@ func (r *ReconcileDependencyBuild) handleBuildPipelineRunReceived(ctx context.Co ImageDigest: digest, Verified: passedVerification, VerificationResults: verificationResults, - Gavs: gavs, + Gavs: deployed, HermeticBuildImage: hermeticBuildImage, } problemContaminates := db.Status.ProblemContaminates()