Skip to content

Commit 2ced1cc

Browse files
authored
Upgrade to go1.23 and general updates (#226)
* update to go1.23 Signed-off-by: cpanato <[email protected]> * bump go-github to v66 Signed-off-by: cpanato <[email protected]> * updates Signed-off-by: cpanato <[email protected]> * sync go mod Signed-off-by: cpanato <[email protected]> --------- Signed-off-by: cpanato <[email protected]>
1 parent 780efa3 commit 2ced1cc

16 files changed

+19
-23
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
1515
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
1616
with:
17-
go-version: '1.22'
17+
go-version: '1.23'
1818
check-latest: true
1919
cache: true
2020

@@ -31,11 +31,10 @@ jobs:
3131
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
3232
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
3333
with:
34-
go-version: '1.22'
34+
go-version: '1.23'
3535
check-latest: true
3636
cache: false
3737
- name: golangci-lint
3838
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1
39-
timeout-minutes: 10
4039
with:
41-
version: v1.56
40+
version: v1.61

.github/workflows/helm-release.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ jobs:
3030
3131
- name: Set up Helm
3232
uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0
33-
with:
34-
version: v3.15.0
3533

3634
- name: Run chart-releaser
3735
uses: helm/chart-releaser-action@a917fd15b20e8b64b94d9158ad54cd6345335584 # v1.6.0

.github/workflows/helm-test.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ jobs:
1616

1717
- name: Set up Helm
1818
uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0
19-
with:
20-
version: v3.15.0
2119

2220
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
2321
with:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
steps:
2626
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
2727
with:
28-
go-version: '1.22'
28+
go-version: '1.23'
2929
check-latest: true
3030

3131
- uses: sigstore/cosign-installer@dc72c7d5c4d10cd6bcb8cf6e3fd625a9e5e537da # v3.7.0

.goreleaser.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
project_name: github_actions_exporter
2+
version: 2
23

34
env:
45
- DOCKER_CLI_EXPERIMENTAL=enabled
@@ -14,7 +15,7 @@ gomod:
1415
proxy: true
1516

1617
snapshot:
17-
name_template: '{{ .Tag }}-SNAPSHOT'
18+
version_template: '{{ .Tag }}-SNAPSHOT'
1819

1920
builds:
2021
- id: binary

example/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ services:
1515
- 9101
1616

1717
prometheus:
18-
image: prom/prometheus:v2.34.0
18+
image: prom/prometheus:v2.54.1
1919
volumes:
2020
- ./prometheus.yml:/etc/prometheus/prometheus.yml
2121
command:

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
module github.com/cpanato/github_actions_exporter
22

3-
go 1.22
3+
go 1.23
44

55
require (
66
github.com/alecthomas/kingpin/v2 v2.4.0
77
github.com/go-kit/log v0.2.1
8-
github.com/google/go-github/v59 v59.0.0
8+
github.com/google/go-github/v66 v66.0.0
99
github.com/prometheus/client_golang v1.18.0
1010
github.com/prometheus/common v0.48.0
1111
github.com/stretchr/testify v1.8.4

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/
2222
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
2323
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
2424
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
25-
github.com/google/go-github/v59 v59.0.0 h1:7h6bgpF5as0YQLLkEiVqpgtJqjimMYhBkD4jT5aN3VA=
26-
github.com/google/go-github/v59 v59.0.0/go.mod h1:rJU4R0rQHFVFDOkqGWxfLNo6vEk4dv40oDjhV/gH6wM=
25+
github.com/google/go-github/v66 v66.0.0 h1:ADJsaXj9UotwdgK8/iFZtv7MLc8E8WBl62WLd/D/9+M=
26+
github.com/google/go-github/v66 v66.0.0/go.mod h1:+4SO9Zkuyf8ytMj0csN1NR/5OTR+MfqPp8P8dVlcvY4=
2727
github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=
2828
github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU=
2929
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=

internal/server/billing_metrics_exporter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
"github.com/go-kit/log"
99
"github.com/go-kit/log/level"
10-
"github.com/google/go-github/v59/github"
10+
"github.com/google/go-github/v66/github"
1111
"golang.org/x/oauth2"
1212
)
1313

internal/server/server_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
"github.com/cpanato/github_actions_exporter/internal/server"
1212
"github.com/go-kit/log"
13-
"github.com/google/go-github/v59/github"
13+
"github.com/google/go-github/v66/github"
1414
"github.com/stretchr/testify/assert"
1515
"github.com/stretchr/testify/require"
1616
)

0 commit comments

Comments
 (0)