Skip to content

Commit

Permalink
add correct layer media type to attach attestation (#1503)
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Phillips <[email protected]>
  • Loading branch information
spiffcs authored Feb 22, 2022
1 parent 8b7a17c commit ec79daf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/cosign/cli/attach/attestation.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ func AttestationCmd(ctx context.Context, regOpts options.RegistryOptions, signed
// each access.
ref = digest // nolint

att, err := static.NewAttestation(payload)
opts := []static.Option{static.WithLayerMediaType(types.DssePayloadType)}
att, err := static.NewAttestation(payload, opts...)
if err != nil {
return err
}
Expand Down

0 comments on commit ec79daf

Please sign in to comment.