Skip to content

Commit 5f9a12a

Browse files
committed
bump to go1.19 and other updates
1 parent 968faa2 commit 5f9a12a

16 files changed

+23
-22
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ updates:
99
directory: "/"
1010
schedule:
1111
interval: weekly
12+
open-pull-requests-limit: 10

.github/workflows/ci.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.0
1313
- uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f # v3.0.0
1414
with:
15-
go-version: 1.18
15+
go-version: 1.19
1616
check-latest: true
1717

1818
- name: Tests
@@ -28,11 +28,10 @@ jobs:
2828
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v2.4.0
2929
- uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f # v2.2.0
3030
with:
31-
go-version: 1.18
31+
go-version: 1.19
3232
check-latest: true
3333
- name: golangci-lint
3434
uses: golangci/golangci-lint-action@537aa1903e5d359d0b27dbc19ddd22c5087f3fbc # v3
3535
timeout-minutes: 5
3636
with:
37-
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
38-
version: v1.45.2
37+
version: latest

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ jobs:
2222
steps:
2323
- uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f # v3.0.0
2424
with:
25-
go-version: 1.18
25+
go-version: 1.19
2626
check-latest: true
2727

28-
- name: Install cosign
29-
uses: sigstore/cosign-installer@ced07f21fb1da67979f539bbc6304c16c0677e76 # v2.2.1
28+
- uses: sigstore/cosign-installer@ced07f21fb1da67979f539bbc6304c16c0677e76 # v2.7.0
29+
- uses: anchore/sbom-action/download-syft@b5042e9d19d8b32849779bfe17673ff84aec702d # v0.11.0
3030

3131
- name: Install GoReleaser
3232
uses: goreleaser/goreleaser-action@ff11ca24a9b39f2d36796d1fbd7a4e39c182630a # v2.9.1

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ github-actions-exporter
1919
.vscode/
2020
dist/
2121
.idea/
22+
/github_actions_exporter

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,4 +114,4 @@ release:
114114
owner: cpanato
115115
name: github_actions_exporter
116116
draft: false
117-
prerelease: true
117+
prerelease: allow

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/distroless/busybox:latest
1+
FROM cgr.dev/chainguard/static:latest
22

33
COPY github-actions-exporter /bin/github-actions-exporter
44

go.mod

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

3-
go 1.18
3+
go 1.19
44

55
require (
66
github.com/go-kit/kit v0.12.0
7-
github.com/google/go-github/v43 v43.0.0
7+
github.com/google/go-github/v47 v47.1.0
88
github.com/prometheus/client_golang v1.13.0
99
github.com/prometheus/common v0.37.0
1010
github.com/stretchr/testify v1.8.0

go.sum

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,9 @@ github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/
117117
github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
118118
github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
119119
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
120-
github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg=
121-
github.com/google/go-github/v43 v43.0.0 h1:y+GL7LIsAIF2NZlJ46ZoC/D1W1ivZasT0lnWHMYPZ+U=
122-
github.com/google/go-github/v43 v43.0.0/go.mod h1:ZkTvvmCXBvsfPpTHXnH/d2hP9Y0cTbvN9kr5xqyXOIc=
120+
github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
121+
github.com/google/go-github/v47 v47.1.0 h1:Cacm/WxQBOa9lF0FT0EMjZ2BWMetQ1TQfyurn4yF1z8=
122+
github.com/google/go-github/v47 v47.1.0/go.mod h1:VPZBXNbFSJGjyjFRUKo9vZGawTajnWzC/YjGw/oFKi0=
123123
github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=
124124
github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU=
125125
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=

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/kit/log"
99
"github.com/go-kit/kit/log/level"
10-
"github.com/google/go-github/v43/github"
10+
"github.com/google/go-github/v47/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/kit/log"
13-
"github.com/google/go-github/v43/github"
13+
"github.com/google/go-github/v47/github"
1414
"github.com/stretchr/testify/assert"
1515
"github.com/stretchr/testify/require"
1616
)

0 commit comments

Comments
 (0)