Skip to content

Commit

Permalink
Update cosign generate cmd to not include newline (#3393)
Browse files Browse the repository at this point in the history
Removing the newline will result in a payload and sha256sum that is
equivalent to what you get with the --output-payload flag and inside
the hashedrekordobj.data.hash.value field.

Signed-off-by: Lily Sturmann <lsturman@redhat.com>
  • Loading branch information
lkatalin committed Nov 28, 2023
1 parent 6b06819 commit 0763bff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cosign/cli/generate/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ func GenerateCmd(ctx context.Context, regOpts options.RegistryOptions, imageRef
if err != nil {
return err
}
fmt.Fprintln(w, string(json))
fmt.Fprint(w, string(json))
return nil
}

0 comments on commit 0763bff

Please sign in to comment.