From 8e11674e34bfd626556341440e401dd0ec6e6798 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 20 Jun 2024 08:37:47 +0000 Subject: [PATCH] chore(deps): Bump github.com/cbrgm/githubevents from 1.13.2 to 1.15.1 Bumps [github.com/cbrgm/githubevents](https://github.com/cbrgm/githubevents) from 1.13.2 to 1.15.1. - [Release notes](https://github.com/cbrgm/githubevents/releases) - [Commits](https://github.com/cbrgm/githubevents/compare/v1.13.2...v1.15.1) --- updated-dependencies: - dependency-name: github.com/cbrgm/githubevents dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- go.mod | 8 +++++--- go.sum | 8 ++++---- helper/github/client.go | 2 +- server/handlers.go | 2 +- server/pool.go | 4 ++-- 5 files changed, 13 insertions(+), 11 deletions(-) diff --git a/go.mod b/go.mod index 4da08ae..18d9074 100644 --- a/go.mod +++ b/go.mod @@ -1,14 +1,16 @@ module github.com/hostinger/fireactions -go 1.22.1 +go 1.22.2 + +toolchain go1.22.4 require ( - github.com/cbrgm/githubevents v1.13.2 + github.com/cbrgm/githubevents v1.15.1 github.com/containerd/log v0.1.0 github.com/gin-contrib/pprof v1.5.0 github.com/gin-contrib/requestid v1.0.2 github.com/gin-gonic/gin v1.10.0 - github.com/google/go-github/v60 v60.0.0 + github.com/google/go-github/v62 v62.0.0 github.com/opencontainers/image-spec v1.1.0 github.com/rs/zerolog v1.33.0 github.com/samber/lo v1.39.0 diff --git a/go.sum b/go.sum index 80e8219..40df11d 100644 --- a/go.sum +++ b/go.sum @@ -102,8 +102,8 @@ github.com/bytedance/sonic v1.11.6 h1:oUp34TzMlL+OY1OUWxHqsdkgC/Zfc85zGqw9siXjrc github.com/bytedance/sonic v1.11.6/go.mod h1:LysEHSvpvDySVdC2f87zGWf6CIKJcAvqab1ZaiQtds4= github.com/bytedance/sonic/loader v0.1.1 h1:c+e5Pt1k/cy5wMveRDyk2X4B9hF4g7an8N3zCYjJFNM= github.com/bytedance/sonic/loader v0.1.1/go.mod h1:ncP89zfokxS5LZrJxl5z0UJcsk4M4yY2JpfqGeCtNLU= -github.com/cbrgm/githubevents v1.13.2 h1:oOGhN9WN624HdKuFaXGJl3zXbQItyfFFLopUHwCbpC0= -github.com/cbrgm/githubevents v1.13.2/go.mod h1:HVco3sO00wGiLhv1gdhzUoMVh7nr+kCDCmcoIQvLLqM= +github.com/cbrgm/githubevents v1.15.1 h1:TTgaxSelJWuLGxZ4Yg6tMLAZ8cN7pYyppKlgQPrzAWw= +github.com/cbrgm/githubevents v1.15.1/go.mod h1:EVAPm/rU5ym2nqD/d0W0JJVtKQlz2B89UVZhEpKejC4= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= @@ -481,8 +481,8 @@ github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN github.com/google/go-github/v29 v29.0.2/go.mod h1:CHKiKKPHJ0REzfwc14QMklvtHwCveD0PxlMjLlzAM5E= github.com/google/go-github/v29 v29.0.3 h1:IktKCTwU//aFHnpA+2SLIi7Oo9uhAzgsdZNbcAqhgdc= github.com/google/go-github/v29 v29.0.3/go.mod h1:CHKiKKPHJ0REzfwc14QMklvtHwCveD0PxlMjLlzAM5E= -github.com/google/go-github/v60 v60.0.0 h1:oLG98PsLauFvvu4D/YPxq374jhSxFYdzQGNCyONLfn8= -github.com/google/go-github/v60 v60.0.0/go.mod h1:ByhX2dP9XT9o/ll2yXAu2VD8l5eNVg8hD4Cr0S/LmQk= +github.com/google/go-github/v62 v62.0.0 h1:/6mGCaRywZz9MuHyw9gD1CwsbmBX8GWsbFkwMmHdhl4= +github.com/google/go-github/v62 v62.0.0/go.mod h1:EMxeUqGJq2xRu9DYBMwel/mr7kZrzUOfQmmpYrZn2a4= github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= diff --git a/helper/github/client.go b/helper/github/client.go index 61cbc57..5978232 100644 --- a/helper/github/client.go +++ b/helper/github/client.go @@ -4,7 +4,7 @@ import ( "net/http" "github.com/bradleyfalzon/ghinstallation" - "github.com/google/go-github/v60/github" + "github.com/google/go-github/v62/github" ) // Client is a wrapper around GitHub client that supports GitHub App authentication for multiple installations. diff --git a/server/handlers.go b/server/handlers.go index 67b6859..a458fbb 100644 --- a/server/handlers.go +++ b/server/handlers.go @@ -6,7 +6,7 @@ import ( "github.com/cbrgm/githubevents/githubevents" "github.com/gin-gonic/gin" - "github.com/google/go-github/v60/github" + "github.com/google/go-github/v62/github" "github.com/hostinger/fireactions" "github.com/samber/lo" ) diff --git a/server/pool.go b/server/pool.go index e09fbed..bb65059 100644 --- a/server/pool.go +++ b/server/pool.go @@ -26,7 +26,7 @@ import ( "github.com/rs/zerolog" "github.com/sirupsen/logrus" - githubv60 "github.com/google/go-github/v60/github" + githubv62 "github.com/google/go-github/v62/github" ) const ( @@ -301,7 +301,7 @@ func (p *Pool) scaleUp(ctx context.Context) error { } client := p.github.Installation(installation.GetID()) - jitConfig, _, err := client.Actions.GenerateOrgJITConfig(ctx, p.config.Runner.Organization, &githubv60.GenerateJITConfigRequest{ + jitConfig, _, err := client.Actions.GenerateOrgJITConfig(ctx, p.config.Runner.Organization, &githubv62.GenerateJITConfigRequest{ Name: runnerName, RunnerGroupID: p.config.Runner.GroupID, Labels: p.config.Runner.Labels,