Skip to content

Commit

Permalink
Check for empty envelope
Browse files Browse the repository at this point in the history
Signed-off-by: Zach Steindler <[email protected]>
  • Loading branch information
steiza committed Oct 23, 2024
1 parent ff8128a commit 0fff093
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cosign/cli/verify/verify_bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ func AssembleNewBundle(ctx context.Context, sigBytes, signedTimestamp []byte, en
}
var sigB64 string
var payload []byte
if envelope != nil {
if envelope != nil && len(envelope.Signatures) > 0 {
payload, err = json.Marshal(*envelope)
if err != nil {
return nil, err
Expand Down

0 comments on commit 0fff093

Please sign in to comment.