Skip to content

Commit 7ea4035

Browse files
authored
chore: upgrade go to 1.26.0 (#2728)
Signed-off-by: Jose I. Paris <jiparis@chainloop.dev>
1 parent ae24c73 commit 7ea4035

10 files changed

Lines changed: 30 additions & 28 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ jobs:
4949
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5050

5151
- name: Set up Go
52-
uses: actions/setup-go@be3c94b385c4f180051c996d336f57a34c397495 # v3.6.1
52+
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
5353
with:
54-
go-version: "1.25.6"
54+
go-version-file: 'go.mod'
5555

5656
# Initializes the CodeQL tools for scanning.
5757
- name: Initialize CodeQL

.github/workflows/lint.yml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,26 @@ jobs:
2424
- artifact-cas
2525
runs-on: ubuntu-latest
2626
steps:
27-
- uses: actions/setup-go@be3c94b385c4f180051c996d336f57a34c397495 # v3.6.1
28-
with:
29-
go-version: "1.25.6"
30-
3127
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
3228

29+
- name: Set up Go
30+
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
31+
with:
32+
go-version-file: 'go.mod'
33+
3334
- name: Lint main module
34-
uses: golangci/golangci-lint-action@1481404843c368bc19ca9406f87d6e0fc97bdcfd # 7.0.0
35+
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # 9.2.0
3536
if: ${{ matrix.app == 'main-module' }}
3637
with:
37-
version: v2.4.0
38+
version: v2.9.0
3839
only-new-issues: 'true'
3940

4041
- name: Lint ${{ matrix.app }}
41-
uses: golangci/golangci-lint-action@1481404843c368bc19ca9406f87d6e0fc97bdcfd # 7.0.0
42+
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # 9.2.0
4243
if: ${{ matrix.app != 'main-module' }}
4344
with:
4445
working-directory: app/${{ matrix.app }}
45-
version: v2.4.0
46+
version: v2.9.0
4647
only-new-issues: 'true'
4748

4849
lint-protos:
@@ -65,19 +66,20 @@ jobs:
6566
cd ~/.local
6667
curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=0.19.3 sh
6768
68-
- uses: actions/setup-go@be3c94b385c4f180051c996d336f57a34c397495 # v3.6.1
69-
with:
70-
go-version: "1.25.6"
71-
7269
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
7370

71+
- name: Set up Go
72+
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
73+
with:
74+
go-version-file: 'go.mod'
75+
7476
- name: Initialize module
7577
run: |
7678
make -C extras/dagger module-init
7779
7880
- name: Lint
79-
uses: golangci/golangci-lint-action@1481404843c368bc19ca9406f87d6e0fc97bdcfd # 7.0.0
81+
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # 9.2.0
8082
with:
8183
working-directory: extras/dagger
82-
version: v2.4.0
84+
version: v2.9.0
8385
only-new-issues: 'true'

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ jobs:
7979
password: ${{ secrets.GITHUB_TOKEN }}
8080

8181
- name: Set up Go
82-
uses: actions/setup-go@be3c94b385c4f180051c996d336f57a34c397495 # v3.6.1
82+
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
8383
with:
84-
go-version: "1.25.6"
84+
go-version-file: 'go.mod'
8585

8686
# install qemu binaries for multiarch builds (needed by goreleaser/buildx)
8787
- name: Setup qemu

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ jobs:
2525
- artifact-cas
2626
steps:
2727
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
28-
- uses: actions/setup-go@be3c94b385c4f180051c996d336f57a34c397495 # v3.6.1
28+
- name: Set up Go
29+
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
2930
with:
30-
go-version: "1.25.6"
31-
cache: true
31+
go-version-file: 'go.mod'
3232
cache-dependency-path: go.sum
3333

3434
- name: Go Module tidy check

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ make migration_lint # Lint migration files
135135

136136
## Key Technologies
137137

138-
- **Language**: Go 1.25.6
138+
- **Language**: Go 1.26.0
139139
- **API**: gRPC with HTTP/JSON gateway, Protocol Buffers with buf
140140
- **Database**: PostgreSQL with Ent ORM, Atlas for migrations
141141
- **Authentication**: OIDC, JWT tokens

app/artifact-cas/Dockerfile.goreleaser

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.25.6@sha256:ce63a16e0f7063787ebb4eb28e72d477b00b4726f79874b3205a965ffd797ab2 AS builder
1+
FROM golang:1.26.0@sha256:75ca321c953ce0572c709fa186cff872a510a22d6dad515291c6eb29edb9c849 AS builder
22

33
FROM scratch
44

app/cli/Dockerfile.goreleaser

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.25.6@sha256:ce63a16e0f7063787ebb4eb28e72d477b00b4726f79874b3205a965ffd797ab2 AS builder
1+
FROM golang:1.26.0@sha256:75ca321c953ce0572c709fa186cff872a510a22d6dad515291c6eb29edb9c849 AS builder
22
RUN mkdir -p /.config/chainloop
33

44
FROM scratch

app/controlplane/Dockerfile.goreleaser

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.25.6@sha256:ce63a16e0f7063787ebb4eb28e72d477b00b4726f79874b3205a965ffd797ab2 AS builder
1+
FROM golang:1.26.0@sha256:75ca321c953ce0572c709fa186cff872a510a22d6dad515291c6eb29edb9c849 AS builder
22

33
FROM scratch
44

docs/examples/ci-workflows/github.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ jobs:
3939
chainloop attestation init --workflow $CHAINLOOP_WORKFLOW_NAME --project $CHAINLOOP_PROJECT_NAME
4040
4141
- name: Set up Go
42-
uses: actions/setup-go@v3
42+
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
4343
with:
44-
go-version: "1.25.5"
44+
go-version-file: 'go.mod'
4545

4646
# Generate SBOM using syft in cycloneDX format
4747
- uses: anchore/sbom-action@v0

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/chainloop-dev/chainloop
22

3-
go 1.25.6
3+
go 1.26.0
44

55
require (
66
cloud.google.com/go/secretmanager v1.16.0

0 commit comments

Comments
 (0)