Skip to content

Upgrade go-github in the root module from v29 to v93 - #7554

Open
mohammedfirdouss wants to merge 3 commits into
pipe-cd:masterfrom
mohammedfirdouss:upgrade-go-github-root
Open

mohammedfirdouss wants to merge 3 commits into
pipe-cd:masterfrom
mohammedfirdouss:upgrade-go-github-root

Conversation

@mohammedfirdouss

@mohammedfirdouss mohammedfirdouss commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

What this PR does:

Upgrades google/go-github in the root module from v29.0.3 to v93.0.0. It is used in two places:

Why we need it:

govulncheck reports GO-2026-5932 (golang.org/x/crypto/openpgp is deprecated, no fixed version) in the root module. The only importer is go-github, which stopped importing the package in v60. With this change the finding is gone from the root module; the remaining root findings are all golang.org/x/net v0.59.0 → v0.60.0, which #7548 covers. Together with #7553 (the two Actions tools) this clears GO-2026-5932 from every module, leaving only GO-2025-3546 (our own advisory without a patched version, see #6600) before the govulncheck gate can be made blocking.

Which issue(s) this PR fixes:

Part of #6600.

Does this PR introduce a user-facing change?:

  • How are users affected by this change: No. The GitHub login and the released-versions listing behave as before.
  • Is this breaking change: No
  • How to migrate (if breaking change): N/A

Screenshots/Videos (for documentation or website changes):

N/A

Signed-off-by: Mohammed Firdous <124298708+mohammedfirdouss@users.noreply.github.com>
@mohammedfirdouss
mohammedfirdouss requested a review from a team as a code owner October 29, 2026 14:28
@mohammedfirdouss
mohammedfirdouss requested review from Warashi, ffjlabo and t-kikuc and a balanced review from Copilot October 29, 2026 14:28
@netlify

netlify Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for pipecd-site canceled.

Name Link
🔨 Latest commit 7910412
🔍 Latest deploy log https://app.netlify.com/projects/pipecd-site/deploys/6ae7040f2b59433f428bdcf2

@codecov

codecov Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 24 lines in your changes missing coverage. Please review.
✅ Project coverage is 31.20%. Comparing base (b2c679c) to head (7910412).

Files with missing lines Patch % Lines
pkg/app/server/grpcapi/web_api.go 0.00% 12 Missing ⚠️
pkg/oauth/github/github.go 0.00% 8 Missing ⚠️
cmd/controlplane/server.go 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7554      +/-   ##
==========================================
- Coverage   31.20%   31.20%   -0.01%     
==========================================
  Files         604      604              
  Lines       53012    53024      +12     
==========================================
  Hits        16544    16544              
- Misses      34911    34923      +12     
  Partials     1557     1557              
Flag Coverage Δ
. 24.85% <0.00%> (-0.01%) ⬇️
.-pkg-app-pipedv1-plugin-analysis 29.19% <ø> (ø)
.-pkg-app-pipedv1-plugin-ecs 35.98% <ø> (ø)
.-pkg-app-pipedv1-plugin-kubernetes 60.19% <ø> (ø)
.-pkg-app-pipedv1-plugin-kubernetes_multicluster 62.25% <ø> (ø)
.-pkg-app-pipedv1-plugin-scriptrun 58.22% <ø> (ø)
.-pkg-app-pipedv1-plugin-terraform 60.79% <ø> (ø)
.-pkg-app-pipedv1-plugin-wait 32.22% <ø> (ø)
.-pkg-app-pipedv1-plugin-waitapproval 55.14% <ø> (ø)
.-pkg-plugin-sdk 52.07% <ø> (ø)
.-tool-actions-gh-release 20.00% <ø> (ø)
.-tool-actions-plan-preview 31.08% <ø> (ø)
.-tool-codegen-protoc-gen-auth 0.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Enterprise SSO configurations without the optional uploadUrl now fail login; defaulting it to sso.BaseUrl before client construction is needed to preserve support for those configurations.

1 open issue
What changed in this PR

Upgrades the root module’s GitHub client from v29 to v93 to remove its dependency on deprecated OpenPGP code, contributing to the vulnerability cleanup tracked in #6600.

Changes:

  • Updates go-github and its dependency checksums.
  • Migrates GitHub SSO and release queries to the v93 API.
  • Propagates client-construction errors through NewWebAPI to control-plane startup.
File Description
pkg/​oauth/​github/​github.go Migrates public and enterprise OAuth client construction to v93.
pkg/​oauth/​github/​github_test.go Updates the GitHub client import used by tests.
pkg/​app/​server/​grpcapi/​web_api.go Handles client initialization errors and value-based release fields.
go.sum Refreshes checksums for upgraded dependencies.
go.mod Upgrades go-github and indirect go-querystring dependencies.
cmd/​controlplane/​server.go Handles errors returned by NewWebAPI.

Review effort: Balanced

Comment thread pkg/oauth/github/github.go Resolved
mohammedfirdouss and others added 2 commits October 29, 2026 15:48
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Mohammed Firdous <124298708+mohammedfirdouss@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants