Skip to content

Commit

Permalink
add correct layer media type to attach attestation (sigstore#1503)
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>
  • Loading branch information
spiffcs authored and mlieberman85 committed May 6, 2022
1 parent 19c4a38 commit 56954c3
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 56954c3

Please sign in to comment.