Skip to content

Commit 5e3efcb

Browse files
committed
chore: update CI actions, Go 1.25, Alpine 3.22
Updates CI to latest major actions (checkout v5, setup-go v6, upload-artifact v5, CodeQL v4) for security and compatibility. Uses stable major tag for autofix action. Updates Docker images to Go 1.25 and Alpine 3.22 to leverage newer toolchain and patched bases.
1 parent 422b56a commit 5e3efcb

File tree

7 files changed

+20
-20
lines changed

7 files changed

+20
-20
lines changed

.github/workflows/autofix.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ jobs:
1010
autofix:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
14-
- uses: actions/setup-go@v5
13+
- uses: actions/checkout@v5
14+
- uses: actions/setup-go@v6
1515
with:
1616
go-version-file: 'go.mod'
1717

@@ -22,4 +22,4 @@ jobs:
2222
# of course we can also do just this instead:
2323
# - run: gofmt -w .
2424

25-
- uses: autofix-ci/action@551dded8c6cc8a1054039c8bc0b8b48c51dfc6ef
25+
- uses: autofix-ci/action@v1

.github/workflows/ci.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ jobs:
3131
- 1.24.x
3232

3333
steps:
34-
- uses: actions/checkout@v4
34+
- uses: actions/checkout@v5
3535

3636
- name: Set up Go ${{ matrix.go }}
37-
uses: actions/setup-go@v5
37+
uses: actions/setup-go@v6
3838
with:
3939
go-version: ${{ matrix.go }}
4040
check-latest: true
@@ -214,7 +214,7 @@ jobs:
214214
215215
- name: Upload test artifacts
216216
if: failure()
217-
uses: actions/upload-artifact@v4
217+
uses: actions/upload-artifact@v5
218218
with:
219219
name: test-results-go-${{ matrix.go }}
220220
path: |
@@ -297,7 +297,7 @@ jobs:
297297
contents: read
298298
steps:
299299
- name: Checkout repository
300-
uses: actions/checkout@v4
300+
uses: actions/checkout@v5
301301

302302
- name: Set up Docker Buildx
303303
uses: docker/setup-buildx-action@v3
@@ -344,7 +344,7 @@ jobs:
344344
if: github.event_name == 'pull_request'
345345
steps:
346346
- name: 'Checkout Repository'
347-
uses: actions/checkout@v4
347+
uses: actions/checkout@v5
348348

349349
- name: 'Dependency Review'
350350
uses: actions/dependency-review-action@v4
@@ -360,12 +360,12 @@ jobs:
360360
contents: write
361361
needs: ['test']
362362
steps:
363-
- uses: actions/checkout@v4
363+
- uses: actions/checkout@v5
364364
with:
365365
fetch-depth: 0
366366

367367
- name: Set up Go
368-
uses: actions/setup-go@v5
368+
uses: actions/setup-go@v6
369369
with:
370370
go-version-file: 'go.mod'
371371
check-latest: true
@@ -461,7 +461,7 @@ jobs:
461461
echo "" >> $GITHUB_STEP_SUMMARY
462462
463463
- name: Upload a Build Artifact
464-
uses: actions/upload-artifact@v4.6.2
464+
uses: actions/upload-artifact@v5.6.2
465465
with:
466466
name: build-artifacts
467467
path: build/
@@ -492,7 +492,7 @@ jobs:
492492
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/feature/docker'))
493493
steps:
494494
- name: Checkout repository
495-
uses: actions/checkout@v4
495+
uses: actions/checkout@v5
496496

497497
- name: Login to Docker Hub
498498
uses: docker/login-action@v3

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
6262
steps:
6363
- name: Checkout repository
64-
uses: actions/checkout@v4
64+
uses: actions/checkout@v5
6565

6666
# Add any setup steps before running the `github/codeql-action/init` action.
6767
# This includes steps like installing compilers or runtimes (`actions/setup-node`
@@ -71,7 +71,7 @@ jobs:
7171

7272
# Initializes the CodeQL tools for scanning.
7373
- name: Initialize CodeQL
74-
uses: github/codeql-action/init@v3
74+
uses: github/codeql-action/init@v4
7575
with:
7676
languages: ${{ matrix.language }}
7777
build-mode: ${{ matrix.build-mode }}

.github/workflows/dependency-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: 'Checkout Repository'
19-
uses: actions/checkout@v4
19+
uses: actions/checkout@v5
2020

2121
- name: 'Dependency Review'
2222
uses: actions/dependency-review-action@v4

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout code
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v5
1818
with:
1919
fetch-depth: 0
2020

2121
- name: Set up Go
22-
uses: actions/setup-go@v5
22+
uses: actions/setup-go@v6
2323
with:
2424
go-version-file: 'go.mod'
2525
check-latest: true

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build stage
2-
FROM golang:1.24-alpine AS builder
2+
FROM golang:1.25-alpine AS builder
33

44
# Install git and ca-certificates (needed for fetching dependencies and HTTPS)
55
RUN apk add --no-cache git ca-certificates tzdata file

Dockerfile.dev

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Uses Alpine instead of scratch for debugging
33

44
# Build stage - same as production
5-
FROM golang:1.24-alpine AS builder
5+
FROM golang:1.25-alpine AS builder
66

77
# Install git and ca-certificates (needed for fetching dependencies and HTTPS)
88
RUN apk add --no-cache git ca-certificates tzdata file
@@ -49,7 +49,7 @@ RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build \
4949
RUN file /app/articulate-parser || echo "file command not available"
5050

5151
# Development stage - uses Alpine for shell access
52-
FROM alpine:3.21.3
52+
FROM alpine:3.22.1
5353

5454
# Install minimal dependencies
5555
RUN apk add --no-cache ca-certificates tzdata

0 commit comments

Comments
 (0)