Skip to content

Commit 6ccf124

Browse files
committed
Switch from x/crypto/openpgp to ProtonMail/go-crypto
1 parent eb0b7ff commit 6ccf124

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ module github.com/terraform-linters/tflint
33
go 1.21
44

55
require (
6+
github.com/ProtonMail/go-crypto v0.0.0-20230217124315-7d5c6f04bbb8
67
github.com/agext/levenshtein v1.2.3
78
github.com/apparentlymart/go-cidr v1.1.0
89
github.com/bmatcuk/doublestar v1.1.5
@@ -43,7 +44,6 @@ require (
4344
cloud.google.com/go/iam v0.13.0 // indirect
4445
cloud.google.com/go/storage v1.29.0 // indirect
4546
github.com/Masterminds/semver/v3 v3.2.1 // indirect
46-
github.com/ProtonMail/go-crypto v0.0.0-20230217124315-7d5c6f04bbb8 // indirect
4747
github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect
4848
github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect
4949
github.com/aws/aws-sdk-go v1.44.122 // indirect

plugin/signature.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"strings"
77

88
//nolint:staticcheck
9-
"golang.org/x/crypto/openpgp"
9+
"github.com/ProtonMail/go-crypto/openpgp"
1010
)
1111

1212
// SignatureChecker checks the signature of GitHub releases.
@@ -52,7 +52,7 @@ func (c *SignatureChecker) Verify(target, signature io.Reader) error {
5252
return err
5353
}
5454

55-
_, err = openpgp.CheckDetachedSignature(keyring, target, signature)
55+
_, err = openpgp.CheckDetachedSignature(keyring, target, signature, nil)
5656
if err != nil {
5757
return err
5858
}

0 commit comments

Comments
 (0)