Skip to content

Update Go to v1.26.10 and golang.org/x/net to v0.60.0 to fix govulncheck findings - #7548

Open
mohammedfirdouss wants to merge 3 commits into
pipe-cd:masterfrom
mohammedfirdouss:fix-govulncheck-findings
Open

mohammedfirdouss wants to merge 3 commits into
pipe-cd:masterfrom
mohammedfirdouss:fix-govulncheck-findings

Conversation

@mohammedfirdouss

@mohammedfirdouss mohammedfirdouss commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

What this PR does:

  • Updates the Go toolchain from 1.26.2 to 1.26.10 in every Dockerfile and workflow GO_VERSION. The go directive in the 14 go.mod files stays at 1.26.2: govulncheck's standard-library findings depend on the toolchain the code is built with, not on the directive, and raising the directive made Snyk's scan of every module error out. The three alpine-based Dockerfiles move to golang:1.26.10-alpine3.24, since no -alpine3.22 tag is published for 1.26.10.
  • Updates golang.org/x/net to v0.60.0 in the 12 modules that depend on it, with go mod tidy in all 14 modules.

Why we need it:

govulncheck on master currently reports, per module, these findings with a fixed version available:

ID Where Fixed in
GO-2026-6809 crypto/x509 Go 1.26.10
GO-2026-6617 net/http and golang.org/x/net Go 1.26.9, x/net v0.60.0
GO-2026-6613 net/http (tools) Go 1.26.9
GO-2026-6600, GO-2026-6599, GO-2026-6091 html/template (protoc-gen-auth) Go 1.26.9 / 1.26.6

With this change those are gone from all 14 modules (checked locally with govulncheck v1.9.0).

Two findings remain and have no fixed version, so the CI gate stays warn-only for now (#6600):

  • GO-2026-5932, golang.org/x/crypto/openpgp is deprecated: it is pulled in only by google/go-github v29 (root), v36 (actions-plan-preview) and v39 (actions-gh-release). go-github stopped importing it in v60, so the fix is upgrading go-github in those three modules, which touch 7 files in total. Follow-up PR.
  • GO-2025-3546, PipeCD's own advisory (GHSA-4jhw-c53w-w5r7) for github.com/pipe-cd/pipecd: the advisory lists the affected range as <= 0.49.0 but no patched version, so the Go vulnerability database marks every version as affected, including the v0.58.0 the SDK and plugins depend on. That needs the advisory corrected with the patched version; nothing in this repository can change it.

Which issue(s) this PR fixes:

Part of #6600.

Does this PR introduce a user-facing change?:

  • How are users affected by this change: Binaries and images are built with Go 1.26.10.
  • Is this breaking change: No
  • How to migrate (if breaking change): N/A

Screenshots/Videos (for documentation or website changes):

N/A

…eck findings

Signed-off-by: Mohammed Firdous <124298708+mohammedfirdouss@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 29, 2026 07:33
@mohammedfirdouss
mohammedfirdouss requested a review from a team as a code owner October 29, 2026 07:33
@netlify

netlify Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for pipecd-site canceled.

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

@codecov

codecov Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 30.94%. Comparing base (60faf25) to head (4cc5c0b).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7548      +/-   ##
==========================================
- Coverage   30.95%   30.94%   -0.02%     
==========================================
  Files         602      602              
  Lines       52862    52862              
==========================================
- Hits        16362    16356       -6     
- Misses      34956    34962       +6     
  Partials     1544     1544              
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 51.89% <ø> (ø)
.-tool-actions-gh-release 20.00% <ø> (ø)
.-tool-actions-plan-preview 27.91% <ø> (ø)
.-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.

@mohammedfirdouss
mohammedfirdouss marked this pull request as draft October 29, 2026 07:37
… 1.26.10

Signed-off-by: Mohammed Firdous <124298708+mohammedfirdouss@users.noreply.github.com>
@mohammedfirdouss

Copy link
Copy Markdown
Contributor Author

PTAL @khanhtc1202 @Warashi @armistcxy

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 block the Go toolchain and networking dependency updates.

No open issues 🎉

What changed in this PR

This PR updates PipeCD’s Go toolchain and networking dependency to address fixable govulncheck findings tracked in #6600, aligning module requirements, container builds, and CI workflows.

Changes:

  • Raises Go requirements and build-toolchain references from 1.26.2 to 1.26.10.
  • Updates golang.org/x/net to v0.60.0 with matching checksums.
  • Leaves the vulnerability gate warn-only while the remaining dependency and advisory issues are handled separately.
File Description
tool/​codegen/​protoc-gen-auth/​go.mod Raises the generator’s Go requirement.
tool/​codegen/​Dockerfile Updates the builder and bundled Go runtime.
tool/​actions-plan-preview/​go.sum Refreshes x/net checksums.
tool/​actions-plan-preview/​go.mod Updates Go and x/net requirements.
tool/​actions-plan-preview/​Dockerfile Updates the Go builder image reference.
tool/​actions-gh-release/​go.mod Raises the release tool’s Go requirement.
tool/​actions-gh-release/​Dockerfile Updates the Go base image reference.
pkg/​plugin/​sdk/​go.sum Refreshes SDK x/net checksums.
pkg/​plugin/​sdk/​go.mod Updates SDK Go and x/net requirements.
pkg/​app/​pipedv1/​plugin/​waitapproval/​go.sum Refreshes waitapproval x/net checksums.
pkg/​app/​pipedv1/​plugin/​waitapproval/​go.mod Updates waitapproval Go and x/net requirements.
pkg/​app/​pipedv1/​plugin/​wait/​go.sum Refreshes wait x/net checksums.
pkg/​app/​pipedv1/​plugin/​wait/​go.mod Updates wait Go and x/net requirements.
pkg/​app/​pipedv1/​plugin/​terraform/​go.sum Refreshes Terraform x/net checksums.
pkg/​app/​pipedv1/​plugin/​terraform/​go.mod Updates Terraform Go and x/net requirements.
pkg/​app/​pipedv1/​plugin/​scriptrun/​go.sum Refreshes scriptrun x/net checksums.
pkg/​app/​pipedv1/​plugin/​scriptrun/​go.mod Updates scriptrun Go and x/net requirements.
pkg/​app/​pipedv1/​plugin/​kubernetes/​go.sum Refreshes Kubernetes x/net checksums.
pkg/​app/​pipedv1/​plugin/​kubernetes/​go.mod Updates Kubernetes Go and x/net requirements.
pkg/​app/​pipedv1/​plugin/​kubernetes_multicluster/​go.sum Refreshes multicluster x/net checksums.
pkg/​app/​pipedv1/​plugin/​kubernetes_multicluster/​go.mod Updates multicluster Go and x/net requirements.
pkg/​app/​pipedv1/​plugin/​ecs/​go.sum Refreshes ECS x/net checksums.
pkg/​app/​pipedv1/​plugin/​ecs/​go.mod Updates ECS Go and x/net requirements.
pkg/​app/​pipedv1/​plugin/​cloudrun/​go.sum Refreshes Cloud Run x/net checksums.
pkg/​app/​pipedv1/​plugin/​cloudrun/​go.mod Updates Cloud Run Go and x/net requirements.
pkg/​app/​pipedv1/​plugin/​analysis/​go.sum Refreshes analysis x/net checksums.
pkg/​app/​pipedv1/​plugin/​analysis/​go.mod Updates analysis Go and x/net requirements.
go.sum Refreshes root-module x/net checksums.
go.mod Updates root-module Go and x/net requirements.
docs/​Dockerfile Updates the documentation server’s Go builder reference.
cmd/​pipedv1/​Dockerfile Updates the plugin-based agent’s Go builder.
cmd/​piped/​Dockerfile-okd Updates the OKD agent’s Go builder.
cmd/​piped/​Dockerfile Updates the legacy agent’s Go builder.
cmd/​pipectl/​Dockerfile Updates the CLI’s Go builder.
cmd/​launcher/​Dockerfile-okd Updates the OKD launcher’s Go builder.
cmd/​launcher/​Dockerfile Updates the launcher’s Go builder.
cmd/​helloworld/​Dockerfile Updates the sample application’s Go builder.
cmd/​controlplane/​Dockerfile Updates the control plane’s Go builder.
.github/​workflows/​test.yaml Selects Go 1.26.10 for tests.
.github/​workflows/​publish_pipedv1_exp.yaml Selects Go 1.26.10 for experimental agent publishing.
.github/​workflows/​publish_binary.yaml Selects Go 1.26.10 for binary publishing.
.github/​workflows/​plugin_release.yaml Selects Go 1.26.10 for plugin releases.
.github/​workflows/​lint.yaml Selects Go 1.26.10 for linting.
.github/​workflows/​build.yaml Selects Go 1.26.10 for builds.

Review effort: Balanced

Signed-off-by: Mohammed Firdous <124298708+mohammedfirdouss@users.noreply.github.com>
@mohammedfirdouss

Copy link
Copy Markdown
Contributor Author

@copilot resolve the merge conflicts in this pull request

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