Skip to content

Commit

Permalink
fix: close attestationFile (#3679)
Browse files Browse the repository at this point in the history
Signed-off-by: guangwu <guoguangwug@gmail.com>
  • Loading branch information
testwill committed Apr 29, 2024
1 parent e4197bd commit d33bbc3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/cosign/cli/attach/attach.go
Expand Up @@ -51,6 +51,7 @@ func attachAttestation(ctx context.Context, remoteOpts []ociremote.Option, signe
if err != nil {
return err
}
defer attestationFile.Close()

env := ssldsse.Envelope{}
decoder := json.NewDecoder(attestationFile)
Expand Down

0 comments on commit d33bbc3

Please sign in to comment.