Skip to content

Upgrade go-github in the GitHub Actions tools to v93 - #7553

Open
mohammedfirdouss wants to merge 2 commits into
pipe-cd:masterfrom
mohammedfirdouss:upgrade-go-github-in-actions-tools
Open

mohammedfirdouss wants to merge 2 commits into
pipe-cd:masterfrom
mohammedfirdouss:upgrade-go-github-in-actions-tools

Conversation

@mohammedfirdouss

Copy link
Copy Markdown
Contributor

What this PR does:

Upgrades google/go-github in the two GitHub Actions tools, one commit per module:

  • tool/actions-plan-preview: v36.0.0 → v93.0.0
  • tool/actions-gh-release: v39.2.0 → v93.0.0

Code changes needed for the new API: github.NewClient now takes functional options and returns an error (github.WithHTTPClient(...)), Issues.CreateComment takes an IssueCommentRequest value, Repositories.CreateRelease takes a CreateReleaseRequest value with a plain TagName, and PullRequest.CreatedAt is a *github.Timestamp. newGitHubClient in actions-gh-release now returns an error and main handles it. Behaviour is otherwise unchanged.

Why we need it:

govulncheck reports GO-2026-5932 (golang.org/x/crypto/openpgp is deprecated and has no fixed version) in both tools. The only importer of that package is go-github, which stopped importing it in v60. After this change:

This is one of the two items left before the govulncheck gate can be made blocking. The root module also uses go-github v29 (OAuth login and the web API); that is a larger change and will be a separate PR.

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. These tools run in this repository's CI only.
  • 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>
Signed-off-by: Mohammed Firdous <124298708+mohammedfirdouss@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 29, 2026 14:23
@mohammedfirdouss
mohammedfirdouss requested a review from a team as a code owner October 29, 2026 14:23
@netlify

netlify Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for pipecd-site canceled.

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

@codecov

codecov Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 23 lines in your changes missing coverage. Please review.
✅ Project coverage is 30.94%. Comparing base (60faf25) to head (4207e29).

Files with missing lines Patch % Lines
tool/actions-gh-release/github.go 0.00% 13 Missing ⚠️
tool/actions-gh-release/main.go 0.00% 4 Missing ⚠️
tool/actions-plan-preview/main.go 0.00% 4 Missing ⚠️
tool/actions-plan-preview/github.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7553      +/-   ##
==========================================
- Coverage   30.95%   30.94%   -0.02%     
==========================================
  Files         602      602              
  Lines       52862    52872      +10     
==========================================
- Hits        16362    16359       -3     
- Misses      34956    34970      +14     
+ Partials     1544     1543       -1     
Flag Coverage Δ
. 24.81% <ø> (-0.02%) ⬇️
.-pkg-app-pipedv1-plugin-analysis 29.19% <ø> (ø)
.-pkg-app-pipedv1-plugin-ecs 34.97% <ø> (ø)
.-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 45.66% <ø> (ø)
.-pkg-app-pipedv1-plugin-wait 32.22% <ø> (ø)
.-pkg-app-pipedv1-plugin-waitapproval 55.14% <ø> (ø)
.-pkg-plugin-sdk 52.07% <ø> (+0.17%) ⬆️
.-tool-actions-gh-release 19.79% <0.00%> (-0.21%) ⬇️
.-tool-actions-plan-preview 27.72% <0.00%> (-0.20%) ⬇️
.-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.

🟢 Approval recommended

No active review issues remain for the go-github v93 upgrade in the two GitHub Actions tools.

No open issues 🎉

What changed in this PR

Upgrades go-github to v93 in PipeCD’s two GitHub Actions tools, removing their dependency on deprecated OpenPGP code as part of #6600. The root module upgrade remains separate.

Changes:

  • Updates both modules’ dependencies and checksums.
  • Adapts client initialization, comment creation, and release creation to the v93 API, including constructor error handling.
  • Updates the plan-preview test fixture to use github.Timestamp.
File Description
tool/​actions-plan-preview/​main.go Uses client options and handles initialization errors.
tool/​actions-plan-preview/​go.sum Refreshes checksums for the dependency upgrade.
tool/​actions-plan-preview/​go.mod Upgrades go-github and go-querystring.
tool/​actions-plan-preview/​github.go Updates imports, comment requests, and API documentation links.
tool/​actions-plan-preview/​github_test.go Updates the import and timestamp fixture.
tool/​actions-gh-release/​release.go Switches the go-github import to v93.
tool/​actions-gh-release/​main.go Handles GitHub client initialization errors.
tool/​actions-gh-release/​go.sum Refreshes checksums and removes obsolete entries.
tool/​actions-gh-release/​go.mod Upgrades dependencies and removes indirect x/crypto.
tool/​actions-gh-release/​github.go Adapts client construction and comment/release requests.

Review effort: Balanced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants