Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions app/cli/internal/action/attestation_push.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,19 @@ func (action *AttestationPush) Run(ctx context.Context, attestationID string, ru

action.Logger.Debug().Msg("validation completed")

// Update status annotations
finalAnnotations := make([]*Annotation, 0, len(craftedAnnotations))
for name, value := range craftedAnnotations {
finalAnnotations = append(finalAnnotations, &Annotation{
Name: name,
Value: value,
})
}

if attestationStatus != nil {
attestationStatus.Annotations = finalAnnotations
}

// Indicate that we are done with the attestation
crafter.CraftingState.Attestation.FinishedAt = timestamppb.New(time.Now())
crafter.CraftingState.Attestation.BypassPolicyCheck = bypassPolicyCheck
Expand Down
Loading