Skip to content

security: drop x/crypto/openpgp by upgrading go-github v33 -> v75#13676

Merged
tanmay-hc merged 1 commit into
mainfrom
getter-update
Jul 10, 2026
Merged

security: drop x/crypto/openpgp by upgrading go-github v33 -> v75#13676
tanmay-hc merged 1 commit into
mainfrom
getter-update

Conversation

@tanmay-hc

Copy link
Copy Markdown
Collaborator

Description

Release scans (OSV binary scanner) flag GO-2026-5932 in golang.org/x/crypto/openpgp, which is unmaintained and has no fixed version — bumping x/crypto cannot resolve it. The package was only compiled into the binary transitively via github.com/google/go-github/v33 (git_commits.go uses openpgp for commit signing, a feature Packer never calls).

This upgrades go-github v33 → v75, which drops the hard openpgp dependency in favor of a MessageSigner interface. Only the import path changed; all APIs used (NewClient, NewRequest, BareDo, RateLimitError) are unchanged.

Changes

  • packer/plugin-getter/github/getter.go: import go-github/v75/github
  • go.mod / go.sum: go-github v33 → v75 (via go mod tidy)

@tanmay-hc
tanmay-hc requested a review from a team as a code owner July 10, 2026 05:39
@tanmay-hc
tanmay-hc merged commit fbcc619 into main Jul 10, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants