Skip to content

Commit f2d9701

Browse files
authored
Merge pull request #534 from kool-dev/upgrade-go
Upgrade go
2 parents f25ea60 + 4833967 commit f2d9701

55 files changed

Lines changed: 330 additions & 648 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343

4444
# Initializes the CodeQL tools for scanning.
4545
- name: Initialize CodeQL
46-
uses: github/codeql-action/init@v1
46+
uses: github/codeql-action/init@v3
4747
with:
4848
languages: ${{ matrix.language }}
4949
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -54,7 +54,7 @@ jobs:
5454
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5555
# If this step fails, then you should remove it and run the build manually (see below)
5656
- name: Autobuild
57-
uses: github/codeql-action/autobuild@v1
57+
uses: github/codeql-action/autobuild@v3
5858

5959
# ℹ️ Command-line programs to run using the OS shell.
6060
# 📚 https://git.io/JvXDl
@@ -68,4 +68,4 @@ jobs:
6868
# make release
6969

7070
- name: Perform CodeQL Analysis
71-
uses: github/codeql-action/analyze@v1
71+
uses: github/codeql-action/analyze@v3

.github/workflows/docker-description.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
- name: Sync Docker Hub Description
1818
if: github.ref == 'refs/heads/main' && github.repository == 'kool-dev/kool'
19-
uses: peter-evans/dockerhub-description@v2
19+
uses: peter-evans/dockerhub-description@v4
2020
env:
2121
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
2222
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}

.github/workflows/docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
steps:
1313
- name: Checkout code
14-
uses: actions/checkout@master
14+
uses: actions/checkout@v4
1515

1616
- uses: olegtarasov/get-tag@v2.1
1717
id: tagName

.github/workflows/golangci-lint.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,13 @@ jobs:
1111
name: lint
1212
runs-on: ubuntu-latest
1313
steps:
14-
# ref: https://github.com/golangci/golangci-lint-action/issues/442#issuecomment-1203786890
15-
- uses: actions/checkout@v3
16-
- uses: actions/setup-go@v3
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-go@v5
1716
with:
1817
go-version-file: go.mod
1918
cache: true
2019
cache-dependency-path: go.sum
21-
- name: Install golangci-lint
22-
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.54.1
2320
- name: Run golangci-lint
24-
run: golangci-lint run --version --verbose --out-format=github-actions
21+
uses: golangci/golangci-lint-action@v7
22+
with:
23+
version: v2.11.4

.github/workflows/release-drafter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ jobs:
2020
issues: write
2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: release-drafter/release-drafter@v5
23+
- uses: release-drafter/release-drafter@v6
2424
env:
2525
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/scan.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ jobs:
1212

1313
steps:
1414
- name: Checkout code
15-
uses: actions/checkout@master
15+
uses: actions/checkout@v4
1616

1717
- name: Build image
1818
run: docker build --pull -t kooldev/kool:4scan .
1919

2020
- name: Scan image
21-
uses: anchore/scan-action@v2
21+
uses: anchore/scan-action@v6
2222
with:
2323
image: "kooldev/kool:4scan"
2424
fail-build: true

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ jobs:
88
test:
99
strategy:
1010
matrix:
11-
go-version: [1.21.x]
11+
go-version: [1.25.x]
1212
os: [ubuntu-latest, macos-latest]
1313
runs-on: ${{ matrix.os }}
1414
steps:
1515
- name: Install Go
16-
uses: actions/setup-go@v2
16+
uses: actions/setup-go@v5
1717
with:
1818
go-version: ${{ matrix.go-version }}
1919
- name: Checkout code

.grype.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Grype config for the kooldev/kool Docker image scan (.github/workflows/scan.yml).
2+
#
3+
# The ignore list below is reserved for CVEs we inherit from upstream images
4+
# and cannot fix ourselves — each entry must link to the upstream tracker and
5+
# be revisited (and ideally removed) when upstream rebuilds.
6+
#
7+
# See docs/01-Getting-Started/5-CI-Integration.md#known-security-caveat for the
8+
# user-facing context.
9+
10+
ignore:
11+
# Inherited from docker:29-cli (Docker 29.4.1). The bundled
12+
# /usr/local/libexec/docker/cli-plugins/{docker-compose,docker-buildx}
13+
# are Go binaries built with go1.25.8; CVE-2026-27143 is fixed in go1.25.9.
14+
# Will clear automatically when docker-library/docker rebuilds the 29-cli
15+
# image with a newer Go toolchain. Tracked upstream:
16+
# https://github.com/docker-library/docker
17+
# Remove this entry once `grype kooldev/kool:<tag>` no longer reports it.
18+
- vulnerability: CVE-2026-27143

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.21 AS build
1+
FROM golang:1.25 AS build
22

33
ARG BUILD_VERSION=0.0.0-auto
44

@@ -11,7 +11,7 @@ RUN go build -a \
1111
-ldflags '-X kool-dev/kool/commands.version='$BUILD_VERSION' -extldflags "-static"' \
1212
-o kool
1313

14-
FROM docker:27-cli
14+
FROM docker:29-cli
1515

1616
ENV DOCKER_HOST=tcp://docker:2375
1717

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ curl -fsSL https://kool.dev/install | bash
3939

4040
You must run `kool` on Windows via [WSL - Windows Subsystem for Linux](https://learn.microsoft.com/en-us/windows/wsl/install) - once you have a WSL environment properly set up, make sure you have [Docker available on it](https://docs.docker.com/desktop/wsl/), then you can install the CLI as you would in any Linux or MacOS (see above).
4141

42+
### In CI pipelines
43+
44+
For CI/CD use cases — most commonly **GitLab CI** with a `docker:dind` service — we publish a pre-built image at [**kooldev/kool**](https://hub.docker.com/r/kooldev/kool) that bundles `kool` together with `docker`, `docker compose`, `git`, and `bash`. See the [CI Integration guide](docs/01-Getting-Started/5-CI-Integration.md) for the DinD sidecar pattern and example `.gitlab-ci.yml` / GitHub Actions configs, plus a [known security caveat](docs/01-Getting-Started/5-CI-Integration.md#known-security-caveat) about CVEs inherited from the upstream `docker:X-cli` base image.
45+
4246
## Getting Started
4347

4448
It's really easy to get started with `kool`. Check out our [Getting Started documentation for a generic PHP web app](https://kool.dev/docs/getting-started/starting-new-project).
@@ -84,6 +88,8 @@ Our work is organized according to a loosely defined but clear roadmap. Check ou
8488

8589
If you find a security issue, please let us know right away, before making it public, by creating a GitHub issue. We'll take action as soon as possible. You can email questions and concerns to `contact@kool.dev`.
8690

91+
For known CVEs inherited by the `kooldev/kool` Docker image from its upstream `docker:X-cli` base, see the [known security caveat](docs/01-Getting-Started/5-CI-Integration.md#known-security-caveat) in the CI Integration guide. These affect only users running the published Docker image in CI pipelines — the native **kool** binary installed via `curl | bash` is unaffected.
92+
8793
## License
8894

8995
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

0 commit comments

Comments
 (0)