Skip to content

add dependabot golang base image updates and pin lint to the go.mod Go version - #2890

Merged
Harsh Rawat (rawahars) merged 2 commits into
mainfrom
harshrawat/update-test-image
Aug 24, 2026
Merged

add dependabot golang base image updates and pin lint to the go.mod Go version#2890
Harsh Rawat (rawahars) merged 2 commits into
mainfrom
harshrawat/update-test-image

Conversation

@rawahars

@rawahars Harsh Rawat (rawahars) commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Extend .github/dependabot.yml to also keep the golang Docker base image in the test Dockerfiles current (digest/patch bumps only; major/minor ignored), matching the existing windows/nanoserver and windows/servercore handling.
  • Run golangci-lint against the Go version from go.mod instead of the newest stable Go, so a new Go release can't outpace the pinned linter and break CI. Build/test jobs still use the latest Go.

Testing

Ran Dependabot locally against the updated config; it proposes the expected golang update.

Signed-off-by: Harsh Rawat <harshrawat@microsoft.com>
@rawahars
Harsh Rawat (rawahars) requested a review from a team as a code owner August 24, 2026 18:24
The lint job used the newest stable Go while golangci-lint is pinned, so a
new Go release could outpace the linter and break CI. Install Go for the
lint job from go.mod so the linter's toolchain stays aligned with the
version the module targets. Build/test jobs still use the latest Go.

Signed-off-by: Harsh Rawat <harshrawat@microsoft.com>
@rawahars Harsh Rawat (rawahars) changed the title update dependabot to keep golang test base images current add dependabot automation for updating golang base images in Dockerfiles Aug 24, 2026
@rawahars Harsh Rawat (rawahars) changed the title add dependabot automation for updating golang base images in Dockerfiles add dependabot golang base image updates and pin lint to the go.mod Go version Aug 24, 2026
@rawahars
Harsh Rawat (rawahars) merged commit c77f496 into main Aug 24, 2026
31 checks passed
@rawahars
Harsh Rawat (rawahars) deleted the harshrawat/update-test-image branch August 24, 2026 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants