Skip to content

Limit Dependabot Go module updates to security advisories only - #70914

Merged
potiuk merged 1 commit into
apache:mainfrom
jason810496:ci/go-sdk/dependabot-security-only
Aug 3, 2026
Merged

Limit Dependabot Go module updates to security advisories only#70914
potiuk merged 1 commit into
apache:mainfrom
jason810496:ci/go-sdk/dependabot-security-only

Conversation

@jason810496

@jason810496 jason810496 commented Aug 1, 2026

Copy link
Copy Markdown
Member

Why

The Go SDK's dependencies resolve directly to upstream repositories. Unlike PyPI or npm, there is no central registry that pre-scans a release before it is published, and whoever controls a module's namespace can cut a release at any time.

Go's checksum database (go.sum + sum.golang.org) makes existing pins immutable, so the risk is not the current pin — it is the next automatic bump.

What

For the gomod ecosystem rooted at /go-sdk:

  • Default branch: disable automatic version-update PRs (open-pull-requests-limit: 0) and keep only the advisory-driven go-sdk-security-updates group. Dependabot security updates require a published GHSA advisory, so they cannot be triggered by an upstream release self-declaring itself a "security" fix. Routine Go dependency bumps are now done manually when we actually need them.
  • Both gomod blocks: raise the cooldown from 4 to 14 days, giving any release a longer window to be flagged before it is auto-considered (the v3-3-test branch still does grouped minor/patch bumps).

This only changes the automation posture for Go modules — no dependency versions change, and security fixes still flow automatically.


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Opus 4.8)

Generated-by: Claude Code (Opus 4.8) following the guidelines

The Go SDK's dependencies resolve directly to upstream repositories. Unlike
PyPI or npm, there is no central registry that pre-scans a release before it
is published, and whoever controls a module's namespace can cut a release at
any time. A dangling/hijacked namespace (as recently seen with slogcolor)
could therefore land a malicious version through a routine Dependabot bump
into contributors' dev environments and CI before anyone reviews it.

Disable automatic version-update PRs for the go-sdk gomod ecosystem on the
default branch (open-pull-requests-limit: 0) and keep only advisory-driven
security updates, which require a published GHSA advisory and cannot be
triggered by an upstream release self-declaring itself a security fix. Routine
Go dependency bumps are now done manually when needed. Raise the gomod cooldown
to 14 days so any release that is auto-considered on the v3-3-test branch has a
longer window to be flagged before it is pulled in.
@potiuk
potiuk merged commit eb076fe into apache:main Aug 3, 2026
65 checks passed
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Backport failed to create: v3-3-test. View the failure log Run details

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
v3-3-test Commit Link

You can attempt to backport this manually by running:

cherry_picker eb076fe v3-3-test

This should apply the commit to the v3-3-test branch and leave the commit in conflict state marking
the files that need manual conflict resolution.

After you have resolved the conflicts, you can continue the backport process by running:

cherry_picker --continue

If you don't have cherry-picker installed, see the installation guide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants