Repository navigation
Upgrade go-github in the GitHub Actions tools to v93 - #7553
Open
mohammedfirdouss wants to merge 2 commits into
Open
mohammedfirdouss wants to merge 2 commits into
mohammedfirdouss wants to merge 2 commits into
Conversation
Signed-off-by: Mohammed Firdous <124298708+mohammedfirdouss@users.noreply.github.com>
Signed-off-by: Mohammed Firdous <124298708+mohammedfirdouss@users.noreply.github.com>
✅ Deploy Preview for pipecd-site canceled.
|
Codecov Report❌ Patch coverage is Additional details and impacted files
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Contributor
There was a problem hiding this comment.
🟢 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does:
Upgrades
google/go-githubin the two GitHub Actions tools, one commit per module:tool/actions-plan-preview: v36.0.0 → v93.0.0tool/actions-gh-release: v39.2.0 → v93.0.0Code changes needed for the new API:
github.NewClientnow takes functional options and returns an error (github.WithHTTPClient(...)),Issues.CreateCommenttakes anIssueCommentRequestvalue,Repositories.CreateReleasetakes aCreateReleaseRequestvalue with a plainTagName, andPullRequest.CreatedAtis a*github.Timestamp.newGitHubClientin actions-gh-release now returns an error andmainhandles it. Behaviour is otherwise unchanged.Why we need it:
govulncheck reports GO-2026-5932 (
golang.org/x/crypto/openpgpis 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:actions-gh-release: govulncheck reports no vulnerabilities.actions-plan-preview: only GO-2025-3546 remains, which is PipeCD's own advisory missing a patched version (see Fix govulncheck failures (9 CVEs in Go dependencies) #6600).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?:
Screenshots/Videos (for documentation or website changes):
N/A