Skip to content

Commit d33bbc3

Browse files
authored
fix: close attestationFile (#3679)
Signed-off-by: guangwu <[email protected]>
1 parent e4197bd commit d33bbc3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/cosign/cli/attach/attach.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ func attachAttestation(ctx context.Context, remoteOpts []ociremote.Option, signe
5151
if err != nil {
5252
return err
5353
}
54+
defer attestationFile.Close()
5455

5556
env := ssldsse.Envelope{}
5657
decoder := json.NewDecoder(attestationFile)

0 commit comments

Comments
 (0)