Skip to content

Commit d658024

Browse files
authored
Bump golang version to 1.26 and add dependabot docker ecosystem (#153)
# Conflicts: # .github/workflows/build.yml # .github/workflows/codeql.yml # .github/workflows/go-test.yml
1 parent bde8554 commit d658024

8 files changed

Lines changed: 19 additions & 15 deletions

File tree

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ updates:
66
schedule:
77
interval: "weekly"
88
- package-ecosystem: "gomod"
9+
directory: "/"
10+
schedule:
11+
interval: "weekly"
12+
- package-ecosystem: "docker"
913
directory: "/"
1014
schedule:
1115
interval: "weekly"

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Harden the runner (Audit all outbound calls)
20-
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
20+
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
2121
with:
2222
egress-policy: audit
2323

24-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
24+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2525

2626
- name: Set up Go
27-
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
27+
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
2828
with:
29-
go-version: '1.24'
29+
go-version: '1.26'
3030

3131
- name: Build
3232
run: go build -v ./...

.github/workflows/codeql.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ jobs:
5959
# 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
6060
steps:
6161
- name: Harden the runner (Audit all outbound calls)
62-
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
62+
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
6363
with:
6464
egress-policy: audit
6565

6666
- name: Checkout repository
67-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
67+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6868

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

7575
# Initializes the CodeQL tools for scanning.
7676
- name: Initialize CodeQL
77-
uses: github/codeql-action/init@45cbd0c69e560cd9e7cd7f8c32362050c9b7ded2 # v4.32.2
77+
uses: github/codeql-action/init@45cbd0c69e560cd9e7cd7f8c32362050c9b7ded2 # v4.32.2
7878
with:
7979
languages: ${{ matrix.language }}
8080
build-mode: ${{ matrix.build-mode }}
@@ -102,6 +102,6 @@ jobs:
102102
exit 1
103103
104104
- name: Perform CodeQL Analysis
105-
uses: github/codeql-action/analyze@45cbd0c69e560cd9e7cd7f8c32362050c9b7ded2 # v4.32.2
105+
uses: github/codeql-action/analyze@45cbd0c69e560cd9e7cd7f8c32362050c9b7ded2 # v4.32.2
106106
with:
107107
category: "/language:${{matrix.language}}"

.github/workflows/go-test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Harden the runner (Audit all outbound calls)
17-
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
17+
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
1818
with:
1919
egress-policy: audit
2020

21-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
21+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2222

2323
- name: Set up Go
2424
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
2525
with:
26-
go-version: '1.24'
26+
go-version: '1.26'
2727

2828
- name: Test
2929
run: go test -v ./...

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM --platform=$BUILDPLATFORM golang:1.24-alpine AS builder
1+
FROM --platform=$BUILDPLATFORM golang:1.25-alpine AS builder
22

33
ARG PROJECT_NAME=gitlab-ci-exporter
44
ARG TARGETOS

Dockerfile.local

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM --platform=$BUILDPLATFORM golang:1.24-alpine AS builder
1+
FROM --platform=$BUILDPLATFORM golang:1.25-alpine AS builder
22

33
ARG PROJECT_NAME=gitlab-ci-exporter
44
ARG TARGETOS

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ FILES := $(shell git ls-files */*.go)
66
COVERAGE_FILE := coverage.out
77
REPOSITORY := "helvethink/$(NAME)"
88
.DEFAULT_GOAL := help
9-
GOLANG_VERSION := 1.23
9+
GOLANG_VERSION := 1.26.1
1010
GOLANGCI_LINT_VERSION ?= v2.1.5
1111

1212
.PHONY: lint

go.mod

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

3-
go 1.24.0
3+
go 1.26.1
44

55
require (
66
dario.cat/mergo v1.0.2

0 commit comments

Comments
 (0)