From 763f017169f2d177bbb73ba24ec52bae16b35a37 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 11 Apr 2023 00:36:40 -0500 Subject: [PATCH] fix(deps): update module github.com/google/go-github/v50 to v51 in go.mod (#3316) * fix(deps): update module github.com/google/go-github/v50 to v51 in go.mod * Update fixtures.go --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com> --- e2e/e2e.go | 2 +- e2e/github.go | 2 +- e2e/go.mod | 2 +- e2e/go.sum | 4 ++-- e2e/main.go | 2 +- go.mod | 1 + go.sum | 2 ++ server/controllers/events/events_controller.go | 2 +- server/controllers/events/events_controller_e2e_test.go | 2 +- server/controllers/events/github_request_validator.go | 2 +- server/events/apply_command_runner_test.go | 2 +- server/events/command_runner.go | 2 +- server/events/command_runner_test.go | 2 +- server/events/event_parser.go | 2 +- server/events/event_parser_test.go | 2 +- .../events/mocks/matchers/ptr_to_github_issuecommentevent.go | 2 +- server/events/mocks/matchers/ptr_to_github_pullrequest.go | 2 +- .../events/mocks/matchers/ptr_to_github_pullrequestevent.go | 2 +- server/events/mocks/matchers/ptr_to_github_repository.go | 2 +- server/events/mocks/mock_event_parsing.go | 2 +- server/events/mocks/mock_github_pull_getter.go | 2 +- server/events/vcs/github_client.go | 2 +- server/events/vcs/github_credentials.go | 2 +- server/events/vcs/instrumented_client.go | 2 +- server/events/vcs/mocks/matchers/ptr_to_github_pullrequest.go | 2 +- server/events/vcs/mocks/mock_github_pull_request_getter.go | 2 +- server/events/vcs/testdata/fixtures.go | 2 +- testdrive/github.go | 2 +- testdrive/testdrive.go | 2 +- 29 files changed, 31 insertions(+), 28 deletions(-) diff --git a/e2e/e2e.go b/e2e/e2e.go index 38230ac95..56966f670 100644 --- a/e2e/e2e.go +++ b/e2e/e2e.go @@ -20,7 +20,7 @@ import ( "os/exec" "time" - "github.com/google/go-github/v50/github" + "github.com/google/go-github/v51/github" ) type E2ETester struct { diff --git a/e2e/github.go b/e2e/github.go index 2fa87456d..40e4e75e1 100644 --- a/e2e/github.go +++ b/e2e/github.go @@ -16,7 +16,7 @@ package main import ( "context" - "github.com/google/go-github/v50/github" + "github.com/google/go-github/v51/github" ) type GithubClient struct { diff --git a/e2e/go.mod b/e2e/go.mod index 6654d781c..09f14ff59 100644 --- a/e2e/go.mod +++ b/e2e/go.mod @@ -3,7 +3,7 @@ module github.com/runatlantis/atlantis/e2e go 1.20 require ( - github.com/google/go-github/v50 v50.2.0 + github.com/google/go-github/v51 v51.0.0 github.com/hashicorp/go-multierror v1.1.1 ) diff --git a/e2e/go.sum b/e2e/go.sum index fdf01524d..57c3d9ba0 100644 --- a/e2e/go.sum +++ b/e2e/go.sum @@ -10,8 +10,8 @@ github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiu github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= -github.com/google/go-github/v50 v50.2.0 h1:j2FyongEHlO9nxXLc+LP3wuBSVU9mVxfpdYUexMpIfk= -github.com/google/go-github/v50 v50.2.0/go.mod h1:VBY8FB6yPIjrtKhozXv4FQupxKLS6H4m6xFZlT43q8Q= +github.com/google/go-github/v51 v51.0.0 h1:KCjsbgPV28VoRftdP+K2mQL16jniUsLAJknsOVKwHyU= +github.com/google/go-github/v51 v51.0.0/go.mod h1:kZj/rn/c1lSUbr/PFWl2hhusPV7a5XNYKcwPrd5L3Us= github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= diff --git a/e2e/main.go b/e2e/main.go index 930dd1631..9e0303b9f 100644 --- a/e2e/main.go +++ b/e2e/main.go @@ -21,7 +21,7 @@ import ( "fmt" - "github.com/google/go-github/v50/github" + "github.com/google/go-github/v51/github" multierror "github.com/hashicorp/go-multierror" ) diff --git a/go.mod b/go.mod index b8f0b90b6..427696ab8 100644 --- a/go.mod +++ b/go.mod @@ -13,6 +13,7 @@ require ( github.com/go-test/deep v1.1.0 github.com/golang-jwt/jwt/v4 v4.5.0 github.com/google/go-github/v50 v50.2.0 + github.com/google/go-github/v51 v51.0.0 github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 github.com/google/uuid v1.3.0 github.com/gorilla/mux v1.8.0 diff --git a/go.sum b/go.sum index 6456b5f00..2632282d1 100644 --- a/go.sum +++ b/go.sum @@ -194,6 +194,8 @@ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-github/v50 v50.2.0 h1:j2FyongEHlO9nxXLc+LP3wuBSVU9mVxfpdYUexMpIfk= github.com/google/go-github/v50 v50.2.0/go.mod h1:VBY8FB6yPIjrtKhozXv4FQupxKLS6H4m6xFZlT43q8Q= +github.com/google/go-github/v51 v51.0.0 h1:KCjsbgPV28VoRftdP+K2mQL16jniUsLAJknsOVKwHyU= +github.com/google/go-github/v51 v51.0.0/go.mod h1:kZj/rn/c1lSUbr/PFWl2hhusPV7a5XNYKcwPrd5L3Us= 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/server/controllers/events/events_controller.go b/server/controllers/events/events_controller.go index e0c644f5f..d45e4e76d 100644 --- a/server/controllers/events/events_controller.go +++ b/server/controllers/events/events_controller.go @@ -19,7 +19,7 @@ import ( "net/http" "strings" - "github.com/google/go-github/v50/github" + "github.com/google/go-github/v51/github" "github.com/mcdafydd/go-azuredevops/azuredevops" "github.com/microcosm-cc/bluemonday" "github.com/pkg/errors" diff --git a/server/controllers/events/events_controller_e2e_test.go b/server/controllers/events/events_controller_e2e_test.go index 7fd5527be..8b34031e3 100644 --- a/server/controllers/events/events_controller_e2e_test.go +++ b/server/controllers/events/events_controller_e2e_test.go @@ -13,7 +13,7 @@ import ( "strings" "testing" - "github.com/google/go-github/v50/github" + "github.com/google/go-github/v51/github" "github.com/hashicorp/go-version" . "github.com/petergtz/pegomock" diff --git a/server/controllers/events/github_request_validator.go b/server/controllers/events/github_request_validator.go index 05cf68c12..0997c12b1 100644 --- a/server/controllers/events/github_request_validator.go +++ b/server/controllers/events/github_request_validator.go @@ -19,7 +19,7 @@ import ( "io" "net/http" - "github.com/google/go-github/v50/github" + "github.com/google/go-github/v51/github" ) //go:generate pegomock generate -m --package mocks -o mocks/mock_github_request_validator.go GithubRequestValidator diff --git a/server/events/apply_command_runner_test.go b/server/events/apply_command_runner_test.go index 6bbe25d0a..31e282af3 100644 --- a/server/events/apply_command_runner_test.go +++ b/server/events/apply_command_runner_test.go @@ -4,7 +4,7 @@ import ( "errors" "testing" - "github.com/google/go-github/v50/github" + "github.com/google/go-github/v51/github" . "github.com/petergtz/pegomock" "github.com/runatlantis/atlantis/server/core/db" "github.com/runatlantis/atlantis/server/core/locking" diff --git a/server/events/command_runner.go b/server/events/command_runner.go index 9e8bfc77f..916c35b58 100644 --- a/server/events/command_runner.go +++ b/server/events/command_runner.go @@ -17,7 +17,7 @@ import ( "fmt" "strconv" - "github.com/google/go-github/v50/github" + "github.com/google/go-github/v51/github" "github.com/mcdafydd/go-azuredevops/azuredevops" "github.com/pkg/errors" "github.com/runatlantis/atlantis/server/core/config/valid" diff --git a/server/events/command_runner_test.go b/server/events/command_runner_test.go index 4eab74194..408b5d70c 100644 --- a/server/events/command_runner_test.go +++ b/server/events/command_runner_test.go @@ -28,7 +28,7 @@ import ( "github.com/runatlantis/atlantis/server/logging" "github.com/runatlantis/atlantis/server/metrics" - "github.com/google/go-github/v50/github" + "github.com/google/go-github/v51/github" . "github.com/petergtz/pegomock" lockingmocks "github.com/runatlantis/atlantis/server/core/locking/mocks" "github.com/runatlantis/atlantis/server/events" diff --git a/server/events/event_parser.go b/server/events/event_parser.go index 08f1330dc..29b659951 100644 --- a/server/events/event_parser.go +++ b/server/events/event_parser.go @@ -21,7 +21,7 @@ import ( "strings" "github.com/go-playground/validator/v10" - "github.com/google/go-github/v50/github" + "github.com/google/go-github/v51/github" "github.com/mcdafydd/go-azuredevops/azuredevops" "github.com/pkg/errors" "github.com/runatlantis/atlantis/server/events/command" diff --git a/server/events/event_parser_test.go b/server/events/event_parser_test.go index 4675807d5..d28508cbb 100644 --- a/server/events/event_parser_test.go +++ b/server/events/event_parser_test.go @@ -21,7 +21,7 @@ import ( "strings" "testing" - "github.com/google/go-github/v50/github" + "github.com/google/go-github/v51/github" "github.com/mcdafydd/go-azuredevops/azuredevops" "github.com/mohae/deepcopy" "github.com/runatlantis/atlantis/server/events" diff --git a/server/events/mocks/matchers/ptr_to_github_issuecommentevent.go b/server/events/mocks/matchers/ptr_to_github_issuecommentevent.go index b8029aea0..86678e974 100644 --- a/server/events/mocks/matchers/ptr_to_github_issuecommentevent.go +++ b/server/events/mocks/matchers/ptr_to_github_issuecommentevent.go @@ -5,7 +5,7 @@ import ( "github.com/petergtz/pegomock" "reflect" - github "github.com/google/go-github/v50/github" + github "github.com/google/go-github/v51/github" ) func AnyPtrToGithubIssueCommentEvent() *github.IssueCommentEvent { diff --git a/server/events/mocks/matchers/ptr_to_github_pullrequest.go b/server/events/mocks/matchers/ptr_to_github_pullrequest.go index f0debd238..c1cd46f8f 100644 --- a/server/events/mocks/matchers/ptr_to_github_pullrequest.go +++ b/server/events/mocks/matchers/ptr_to_github_pullrequest.go @@ -5,7 +5,7 @@ import ( "github.com/petergtz/pegomock" "reflect" - github "github.com/google/go-github/v50/github" + github "github.com/google/go-github/v51/github" ) func AnyPtrToGithubPullRequest() *github.PullRequest { diff --git a/server/events/mocks/matchers/ptr_to_github_pullrequestevent.go b/server/events/mocks/matchers/ptr_to_github_pullrequestevent.go index 0542bf45f..b1851da6e 100644 --- a/server/events/mocks/matchers/ptr_to_github_pullrequestevent.go +++ b/server/events/mocks/matchers/ptr_to_github_pullrequestevent.go @@ -5,7 +5,7 @@ import ( "github.com/petergtz/pegomock" "reflect" - github "github.com/google/go-github/v50/github" + github "github.com/google/go-github/v51/github" ) func AnyPtrToGithubPullRequestEvent() *github.PullRequestEvent { diff --git a/server/events/mocks/matchers/ptr_to_github_repository.go b/server/events/mocks/matchers/ptr_to_github_repository.go index 627f21244..3462f6115 100644 --- a/server/events/mocks/matchers/ptr_to_github_repository.go +++ b/server/events/mocks/matchers/ptr_to_github_repository.go @@ -5,7 +5,7 @@ import ( "github.com/petergtz/pegomock" "reflect" - github "github.com/google/go-github/v50/github" + github "github.com/google/go-github/v51/github" ) func AnyPtrToGithubRepository() *github.Repository { diff --git a/server/events/mocks/mock_event_parsing.go b/server/events/mocks/mock_event_parsing.go index 3f80b81c8..3bd778595 100644 --- a/server/events/mocks/mock_event_parsing.go +++ b/server/events/mocks/mock_event_parsing.go @@ -4,7 +4,7 @@ package mocks import ( - github "github.com/google/go-github/v50/github" + github "github.com/google/go-github/v51/github" azuredevops "github.com/mcdafydd/go-azuredevops/azuredevops" pegomock "github.com/petergtz/pegomock" models "github.com/runatlantis/atlantis/server/events/models" diff --git a/server/events/mocks/mock_github_pull_getter.go b/server/events/mocks/mock_github_pull_getter.go index fac8766b3..06a93d14b 100644 --- a/server/events/mocks/mock_github_pull_getter.go +++ b/server/events/mocks/mock_github_pull_getter.go @@ -4,7 +4,7 @@ package mocks import ( - github "github.com/google/go-github/v50/github" + github "github.com/google/go-github/v51/github" pegomock "github.com/petergtz/pegomock" models "github.com/runatlantis/atlantis/server/events/models" "reflect" diff --git a/server/events/vcs/github_client.go b/server/events/vcs/github_client.go index 0dd298979..b10b00ee6 100644 --- a/server/events/vcs/github_client.go +++ b/server/events/vcs/github_client.go @@ -21,7 +21,7 @@ import ( "strings" "time" - "github.com/google/go-github/v50/github" + "github.com/google/go-github/v51/github" "github.com/pkg/errors" "github.com/runatlantis/atlantis/server/events/command" "github.com/runatlantis/atlantis/server/events/models" diff --git a/server/events/vcs/github_credentials.go b/server/events/vcs/github_credentials.go index 8e4e0b2a9..a34baee2d 100644 --- a/server/events/vcs/github_credentials.go +++ b/server/events/vcs/github_credentials.go @@ -8,7 +8,7 @@ import ( "strings" "github.com/bradleyfalzon/ghinstallation/v2" - "github.com/google/go-github/v50/github" + "github.com/google/go-github/v51/github" "github.com/pkg/errors" ) diff --git a/server/events/vcs/instrumented_client.go b/server/events/vcs/instrumented_client.go index e09ab6c25..436af3682 100644 --- a/server/events/vcs/instrumented_client.go +++ b/server/events/vcs/instrumented_client.go @@ -4,7 +4,7 @@ import ( "fmt" "strconv" - "github.com/google/go-github/v50/github" + "github.com/google/go-github/v51/github" "github.com/runatlantis/atlantis/server/events/models" "github.com/runatlantis/atlantis/server/logging" "github.com/runatlantis/atlantis/server/metrics" diff --git a/server/events/vcs/mocks/matchers/ptr_to_github_pullrequest.go b/server/events/vcs/mocks/matchers/ptr_to_github_pullrequest.go index f0debd238..c1cd46f8f 100644 --- a/server/events/vcs/mocks/matchers/ptr_to_github_pullrequest.go +++ b/server/events/vcs/mocks/matchers/ptr_to_github_pullrequest.go @@ -5,7 +5,7 @@ import ( "github.com/petergtz/pegomock" "reflect" - github "github.com/google/go-github/v50/github" + github "github.com/google/go-github/v51/github" ) func AnyPtrToGithubPullRequest() *github.PullRequest { diff --git a/server/events/vcs/mocks/mock_github_pull_request_getter.go b/server/events/vcs/mocks/mock_github_pull_request_getter.go index 35ca767e8..0bf402d08 100644 --- a/server/events/vcs/mocks/mock_github_pull_request_getter.go +++ b/server/events/vcs/mocks/mock_github_pull_request_getter.go @@ -4,7 +4,7 @@ package mocks import ( - github "github.com/google/go-github/v50/github" + github "github.com/google/go-github/v51/github" pegomock "github.com/petergtz/pegomock" models "github.com/runatlantis/atlantis/server/events/models" "reflect" diff --git a/server/events/vcs/testdata/fixtures.go b/server/events/vcs/testdata/fixtures.go index 2aabdce14..887b990d8 100644 --- a/server/events/vcs/testdata/fixtures.go +++ b/server/events/vcs/testdata/fixtures.go @@ -22,7 +22,7 @@ import ( "testing" "github.com/golang-jwt/jwt/v4" - "github.com/google/go-github/v50/github" + "github.com/google/go-github/v51/github" "github.com/mcdafydd/go-azuredevops/azuredevops" ) diff --git a/testdrive/github.go b/testdrive/github.go index cc5c8fe2b..6b45f468e 100644 --- a/testdrive/github.go +++ b/testdrive/github.go @@ -18,7 +18,7 @@ import ( "strings" "time" - "github.com/google/go-github/v50/github" + "github.com/google/go-github/v51/github" ) var githubUsername string diff --git a/testdrive/testdrive.go b/testdrive/testdrive.go index a1c999b4c..b7dd30276 100644 --- a/testdrive/testdrive.go +++ b/testdrive/testdrive.go @@ -31,7 +31,7 @@ import ( "time" "github.com/briandowns/spinner" - "github.com/google/go-github/v50/github" + "github.com/google/go-github/v51/github" "github.com/mitchellh/colorstring" "github.com/pkg/errors" )