Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch from x/crypto/openpgp to ProtonMail/go-crypto #1769

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
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 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
Loading