@actions/github: use @actions/http-client 4.x#2301
Open
Bo98 wants to merge 1 commit intoactions:mainfrom
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates @actions/github to use @actions/http-client 4.x (ESM version) instead of 3.x (CommonJS version). This change resolves a dual bundling issue where actions were unnecessarily including two versions of @actions/http-client - version 3.x from @actions/github and version 4.x from @actions/core, which are commonly installed together.
Changes:
- Updated dependency from
@actions/http-client^3.0.2 to ^4.0.0 in package.json - Updated package-lock.json with the new version metadata and integrity hash
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| packages/github/package.json | Updated @actions/http-client dependency from ^3.0.2 to ^4.0.0 |
| packages/github/package-lock.json | Updated lockfile with @actions/http-client 4.0.0 metadata and integrity hash |
Files not reviewed (1)
- packages/github/package-lock.json: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
@actions/githubwas updated to use ESM but is still using CJS@actions/http-client3.x. Given@actions/coreis typically installed alongside which does support@actions/http-client4.x, this meant most actions were unnecessarily bundling two versions of@actions/http-client.