Skip to content

Conversation

@Bishibop
Copy link
Contributor

Add automated Go version updates workflow using StefMa/Upgrade-Go-Action.

Problem: Dependabot cannot update the Go version in go.mod (dependabot/dependabot-core#9527).

Solution: Weekly workflow checks for new Go releases and creates PRs.

Related: https://github.com/replicated-collab/git-guardian-kots/issues/287

Add GitHub Actions workflow using StefMa/Upgrade-Go-Action to
automatically check for new Go releases and create PRs to update
the go directive in go.mod.

This addresses the limitation that Dependabot cannot update the
Go version itself (only module dependencies), which means stdlib
CVEs that are fixed in newer Go patch releases are not automatically
detected.

Workflow runs:
- Weekly on Mondays at 8am UTC
- Manually via workflow_dispatch

When a new Go version is available, the action will:
1. Update the go directive in go.mod
2. Run go mod tidy
3. Create a pull request with the changes

Related: replicated-collab/git-guardian-kots#287
Dependabot limitation: dependabot/dependabot-core#9527
@Bishibop Bishibop self-assigned this Nov 19, 2025
@Bishibop Bishibop marked this pull request as ready for review November 20, 2025 16:15
Comment on lines +20 to +23
- name: Check for Go updates
uses: StefMa/Upgrade-Go-Action@v1
with:
base-branch: 'main'
Copy link
Member

@laverya laverya Nov 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will need a github token or else CI won't run in the generated PRs

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

@Bishibop Bishibop merged commit aa13c2e into main Nov 20, 2025
17 checks passed
@Bishibop Bishibop deleted the add-upgrade-go-action branch November 20, 2025 23:34
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