-
Notifications
You must be signed in to change notification settings - Fork 356
[fix][sec] Bump golang.org/x/net to address CVE-2025-22870, requires go 1.23 #1351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… requires go 1.23
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR bumps golang.org/x/net to v0.38.0 to address CVE-2025-22870 and raises the minimum required Go version to 1.23.
- Update README.md to reflect the new minimum Go version and update test command.
- Modify CI workflows to test on updated Go versions and update the bot workflow runner.
Reviewed Changes
Copilot reviewed 4 out of 7 changed files in this pull request and generated no comments.
File | Description |
---|---|
README.md | Minimum required Go version updated and test command now invokes Go 1.23. |
.github/workflows/ci.yml | Test matrix versions updated from [1.22, 1.23] to [1.23, 1.24]; explicit go-version remains fixed. |
.github/workflows/bot.yml | Update runner from ubuntu-20.04 to ubuntu-latest. |
Files not reviewed (3)
- Dockerfile: Language not supported
- Makefile: Language not supported
- go.mod: Language not supported
Comments suppressed due to low confidence (2)
.github/workflows/ci.yml:25
- [nitpick] The CI test matrix now includes Go 1.24 even though the PR specifies a minimum version of 1.23. Please confirm that including Go 1.24 is intentional and compatible with project requirements.
go-version: [ '1.23', '1.24' ]
.github/workflows/ci.yml:39
- [nitpick] Consider parameterizing this go-version setting using the matrix variable to ensure the tests run on both specified versions instead of hardcoding '1.23'.
go-version: '1.23'
592944b
to
9ca9053
Compare
Tests are failing and it looks like the tests aren't executed in the best possible way. |
Some progress after removing
|
I added a solution where it's easier to run tests without For example make TEST_RACE=0 TEST_COVERAGE=0 test_standalone This will help finding test issues in the future where there's a failure without any additional information. It's necessary to run without |
- it could cause issues when it's enabled with "-race" - the coverage reports aren't uploaded anywhere
I'm disabling |
### Motivation This PR #1351 introduced some changes but breaked the CI. Currently, even if there are some failed tests, the CI won't be failed: https://github.com/apache/pulsar-client-go/actions/runs/14973771263/job/42060743359?pr=1364#step:6:9285 The root cause is because it captures the exit status of the tee command instead of the go test command. This causes the script to report "Tests passed" even when tests actually fail, leading to false positive CI results. ``` $TEST_CMD 2>&1 | tee $TEST_LOG ``` ### Modification - Use `set -o pipefail` to correctly capture the exit status of the `go test` command in the pipeline
### Motivation This PR #1351 introduced some changes but breaked the CI. Currently, even if there are some failed tests, the CI won't be failed: https://github.com/apache/pulsar-client-go/actions/runs/14973771263/job/42060743359?pr=1364#step:6:9285 The root cause is because it captures the exit status of the tee command instead of the go test command. This causes the script to report "Tests passed" even when tests actually fail, leading to false positive CI results. ``` $TEST_CMD 2>&1 | tee $TEST_LOG ``` ### Modification - Use `set -o pipefail` to correctly capture the exit status of the `go test` command in the pipeline (cherry picked from commit a5c6dee)
Motivation
We have an unresolved vulnerability CVE-2025-22870
Modifications
Documentation
Minimum required golang version is updated in README