Skip to content

Commit 0ffda8e

Browse files
vdemeesterclaude
andcommitted
fix: use chainguard/git base image for releases
The goreleaser kos: section had golang:1.25 (808MB) as base image, while .ko.yaml correctly uses cgr.dev/chainguard/git (76MB). Goreleaser ignores .ko.yaml so the base must be set in both places. golang:1.25 is a full Go SDK image with hundreds of unnecessary packages, resulting in a large attack surface and many CVEs in security scans (visible on Artifact Hub). cgr.dev/chainguard/git is a minimal image with only git and its dependencies, patched and maintained by Chainguard. Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
1 parent 81189e7 commit 0ffda8e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

image/git-init/.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ kos:
2929
- id: git-init-image
3030
build: binary
3131
main: .
32-
base_image: golang:1.25
32+
base_image: cgr.dev/chainguard/git
3333
platforms:
3434
- all
3535
tags:

0 commit comments

Comments
 (0)