Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion cmd/cosign/cli/sign/sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@
}

if signOpts.OutputCertificate != "" {
rekorBytes, err := sv.Bytes(ctx)
rekorBytes, err := extractCertificate(ctx,sv)

Check failure on line 297 in cmd/cosign/cli/sign/sign.go

View workflow job for this annotation

GitHub Actions / lint

File is not properly formatted (goimports)

Check failure on line 297 in cmd/cosign/cli/sign/sign.go

View workflow job for this annotation

GitHub Actions / lint

File is not properly formatted (gofmt)
if err != nil {
return fmt.Errorf("create certificate file: %w", err)
}
Expand Down
4 changes: 2 additions & 2 deletions cmd/cosign/cli/sign/sign_blob.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
// nolint
func SignBlobCmd(ro *options.RootOptions, ko options.KeyOpts, payloadPath string, b64 bool, outputSignature string, outputCertificate string, tlogUpload bool) ([]byte, error) {
var payload internal.HashReader

var err error
ctx, cancel := context.WithTimeout(context.Background(), ro.Timeout)
defer cancel()

Expand Down Expand Up @@ -240,7 +240,7 @@
return nil, fmt.Errorf("create certificate file: %w", err)
}
ui.Infof(ctx, "Wrote certificate to file %s", outputCertificate)
}
}

Check failure on line 243 in cmd/cosign/cli/sign/sign_blob.go

View workflow job for this annotation

GitHub Actions / Check Whitespace

[trailing whitespace] reported by reviewdog 🐶 Space at end of line Raw Output: cmd/cosign/cli/sign/sign_blob.go:243:Space at end of line
}

return sig, nil
Expand Down
Loading