Skip to content

Conversation

@octo-sts
Copy link
Contributor

@octo-sts octo-sts bot commented Jan 14, 2026

datadog-agent-7.73/7.73.3-r0: fix GHSA-xrwg-mqj6-6m22

Advisory data: https://github.com/wolfi-dev/advisories/blob/main/datadog-agent-7.73.advisories.yaml


"Breadcrumbs" for this automated service

Inspected git repositories: https://github.com/DataDog/datadog-agent@7.73.3

@octo-sts
Copy link
Contributor Author

octo-sts bot commented Jan 14, 2026

🔢 Build Failed: Dependency Version Mismatch

go: github.com/envoyproxy/gateway@v1.5.7 requires go@1.24.11, but 1.24.7 is requested

Build Details

Category Details
Build System Go
Failure Point go mod tidy command during go/bump step

Root Cause Analysis 🔍

Version mismatch between the Go version being used (1.24.7) and the minimum Go version required by the github.com/envoyproxy/gateway@v1.5.7 dependency (1.24.11). The gobump tool attempted to update dependencies but failed because the available Go runtime version is older than what the dependency requires.


🔍 Build failure fix suggestions

Found similar build failures that have been fixed in the past and analyzed them to suggest a fix:

Similar PRs with fixes

Suggested Changes

File: datadog-agent-7.73.yaml

  • modify at line 69 (environment.contents.packages section)
    Original:
      - go-1.24

Replacement:

      - go-1.25

Content:

Change the Go package dependency from go-1.24 to go-1.25 to provide Go version 1.25.x which will satisfy the minimum requirement of 1.24.11
  • modify at line 125 (go/bump step)
    Original:
      go-version: "1.24.7" # package built w/ go-1.24 - keeps tidy at 1.24.7, otherwise go mod tidy fails

Replacement:

      go-version: "1.25" # package built w/ go-1.25 - updated to satisfy github.com/envoyproxy/gateway@v1.5.7 requirement

Content:

Update the explicit go-version parameter in the go/bump step to use Go 1.25 instead of 1.24.7
Click to expand fix analysis

Analysis

The pattern across all three similar fixes shows that Go version mismatches are consistently resolved by upgrading the Go version in the build environment. Fix #0 added "go~1.24" to packages, Fix #1 upgraded from "go-fips-1.24" to "go-fips-1.25", and Fix #2 explicitly set "go-version: 1.24.7" in the go/bump step. The current error requires Go 1.24.11 but only has 1.24.7 available, indicating the build environment needs to use a newer Go version that satisfies the dependency requirement.

Click to expand fix explanation

Explanation

This fix addresses the root cause by upgrading the Go version from 1.24 to 1.25 in two critical places. The github.com/envoyproxy/gateway@v1.5.7 dependency requires Go 1.24.11 minimum, but the current build environment only provides Go 1.24.7. By upgrading to go-1.25 package and updating the go-version parameter to "1.25", we ensure the build environment has a Go version (1.25.x) that satisfies the dependency requirement. This follows the exact pattern seen in Fix #1 where go-fips-1.24 was upgraded to go-fips-1.25 to resolve a similar version compatibility issue. The comment update also reflects the reasoning behind the change, similar to how Fix #2 included explanatory comments.

Click to expand alternative approaches

Alternative Approaches

  • Could downgrade the github.com/envoyproxy/gateway dependency to an older version that supports Go 1.24.7, but this would conflict with Wolfi's principle of keeping packages up to date with latest upstream versions
  • Could use a more specific Go version like go-1.24.11 if such a package exists, but go-1.25 provides better future compatibility
  • Could modify the go.mod file to lower the minimum Go version requirement, but this might introduce compatibility issues and is not a sustainable solution

Was this comment helpful? Please use 👍 or 👎 reactions on this comment.

@octo-sts octo-sts bot added the ai/skip-comment Stop AI from commenting on PR label Jan 14, 2026
@brianmcarey brianmcarey self-assigned this Jan 20, 2026
@octo-sts octo-sts bot added bincapz/pass bincapz/pass Bincapz (aka. malcontent) scan didn't detect any CRITICALs on the scanned packages. approver-bot/manual-review-needed manual/review-needed staging-approver-bot/manual-review-needed labels Jan 20, 2026
octo-sts bot and others added 2 commits January 20, 2026 14:44
@brianmcarey brianmcarey force-pushed the cve-datadog-agent-7.73-7.73.3-r0-8c6101c4a8f8426170055857ed084b14 branch from 2b57771 to 8945e8f Compare January 20, 2026 14:44
@brianmcarey brianmcarey enabled auto-merge January 20, 2026 14:52
@brianmcarey brianmcarey requested a review from a team January 20, 2026 15:13
@brianmcarey brianmcarey merged commit de68424 into main Jan 20, 2026
19 checks passed
@brianmcarey brianmcarey deleted the cve-datadog-agent-7.73-7.73.3-r0-8c6101c4a8f8426170055857ed084b14 branch January 20, 2026 15:31
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.

3 participants