Skip to content

Commit

Permalink
Switch from x/crypto/openpgp to ProtonMail/go-crypto
Browse files Browse the repository at this point in the history
  • Loading branch information
wata727 committed Sep 2, 2023
1 parent eb0b7ff commit 6ccf124
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module github.com/terraform-linters/tflint
go 1.21

require (
github.com/ProtonMail/go-crypto v0.0.0-20230217124315-7d5c6f04bbb8
github.com/agext/levenshtein v1.2.3
github.com/apparentlymart/go-cidr v1.1.0
github.com/bmatcuk/doublestar v1.1.5
Expand Down Expand Up @@ -43,7 +44,6 @@ require (
cloud.google.com/go/iam v0.13.0 // indirect
cloud.google.com/go/storage v1.29.0 // indirect
github.com/Masterminds/semver/v3 v3.2.1 // indirect
github.com/ProtonMail/go-crypto v0.0.0-20230217124315-7d5c6f04bbb8 // indirect
github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect
github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect
github.com/aws/aws-sdk-go v1.44.122 // indirect
Expand Down
4 changes: 2 additions & 2 deletions plugin/signature.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"

//nolint:staticcheck
"golang.org/x/crypto/openpgp"
"github.com/ProtonMail/go-crypto/openpgp"
)

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

_, err = openpgp.CheckDetachedSignature(keyring, target, signature)
_, err = openpgp.CheckDetachedSignature(keyring, target, signature, nil)
if err != nil {
return err
}
Expand Down

0 comments on commit 6ccf124

Please sign in to comment.