Repository: reviewdog/reviewdog
Pull request #1616 (2023-12-01 19:18:09)

fix(deps): update module github.com/google/go-github/v56 to v57
[![Mend Renovate logo banner](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/google/go-github/v56](https://togithub.com/google/go-github) | require | major | `v56.0.0` -> `v57.0.0` |

---

### Release Notes

<details>
<summary>google/go-github (github.com/google/go-github/v56)</summary>

### [`v57.0.0`](https://togithub.com/google/go-github/releases/tag/v57.0.0)

[Compare Source](https://togithub.com/google/go-github/compare/v56.0.0...v57.0.0)

This release contains the following breaking API change:

-   Change PushEvent.Pusher type to CommitAuthor ([#&#8203;2999](https://togithub.com/google/go-github/issues/2999))

...and the following additional changes:

-   Bump go-github from v55 to v56 in /scrape ([#&#8203;2962](https://togithub.com/google/go-github/issues/2962))
-   Add support for packages IP address for APIMeta ([#&#8203;2964](https://togithub.com/google/go-github/issues/2964))
-   Bump github.com/google/go-cmp from 0.5.9 to 0.6.0 ([#&#8203;2967](https://togithub.com/google/go-github/issues/2967))
-   Move RateLimits method to a service ([#&#8203;2969](https://togithub.com/google/go-github/issues/2969))
-   Add nil check in ErrorResponse.Error method ([#&#8203;2971](https://togithub.com/google/go-github/issues/2971))
-   Lint godoc comments ([#&#8203;2972](https://togithub.com/google/go-github/issues/2972))
-   Add referenced workflows to WorkflowRun ([#&#8203;2975](https://togithub.com/google/go-github/issues/2975))
-   Use metadata to reconcile go-github with GitHub's OpenAPI descriptions ([#&#8203;2919](https://togithub.com/google/go-github/issues/2919))
-   Fix branch protection request fields ([#&#8203;2977](https://togithub.com/google/go-github/issues/2977))
-   Add dependabot alert update endpoint ([#&#8203;2981](https://togithub.com/google/go-github/issues/2981))
-   Bump golang.org/x/sync from 0.4.0 to 0.5.0 in /tools ([#&#8203;2990](https://togithub.com/google/go-github/issues/2990))
-   Deprecate RepositoriesService.List ([#&#8203;2988](https://togithub.com/google/go-github/issues/2988))
-   Add support for Required Workflows ([#&#8203;2979](https://togithub.com/google/go-github/issues/2979))
-   Implement Custom Properties ([#&#8203;2986](https://togithub.com/google/go-github/issues/2986))
-   Bump golang.org/x/net from 0.17.0 to 0.18.0 in /scrape ([#&#8203;2991](https://togithub.com/google/go-github/issues/2991))
-   Add default branch to repository edit event ([#&#8203;2995](https://togithub.com/google/go-github/issues/2995))
-   Add Draft to Issue type ([#&#8203;2997](https://togithub.com/google/go-github/issues/2997))
-   Fix secondary rate limits URL ([#&#8203;3001](https://togithub.com/google/go-github/issues/3001))
-   Bump golang.org/x/net from 0.18.0 to 0.19.0 in /scrape ([#&#8203;3003](https://togithub.com/google/go-github/issues/3003))
-   Implement global security advisories API ([#&#8203;2993](https://togithub.com/google/go-github/issues/2993))
-   Bump version of go-github to v57.0.0 ([#&#8203;3009](https://togithub.com/google/go-github/issues/3009))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/reviewdog/reviewdog).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy41OS44IiwidXBkYXRlZEluVmVyIjoiMzcuNTkuOCIsInRhcmdldEJyYW5jaCI6Im1hc3RlciJ9-->



Patch:
diff --git a/cmd/reviewdog/main.go b/cmd/reviewdog/main.go
index bee52b07..4ba70f12 100644
--- a/cmd/reviewdog/main.go
+++ b/cmd/reviewdog/main.go
@@ -19,7 +19,7 @@ import (
 	"golang.org/x/build/gerrit"
 	"golang.org/x/oauth2"
 
-	"github.com/google/go-github/v56/github"
+	"github.com/google/go-github/v57/github"
 	"github.com/mattn/go-shellwords"
 	"github.com/reviewdog/errorformat/fmts"
 	"github.com/xanzy/go-gitlab"
diff --git a/doghouse/appengine/github.go b/doghouse/appengine/github.go
index f1ed02d3..b4690ae2 100644
--- a/doghouse/appengine/github.go
+++ b/doghouse/appengine/github.go
@@ -12,7 +12,7 @@ import (
 	"net/url"
 	"strings"
 
-	"github.com/google/go-github/v56/github"
+	"github.com/google/go-github/v57/github"
 	"github.com/justinas/nosurf"
 	"github.com/vvakame/sdlog/aelog"
 	"golang.org/x/oauth2"
diff --git a/doghouse/appengine/github_webhook.go b/doghouse/appengine/github_webhook.go
index da506c45..a54305e1 100644
--- a/doghouse/appengine/github_webhook.go
+++ b/doghouse/appengine/github_webhook.go
@@ -6,7 +6,7 @@ import (
 	"fmt"
 	"net/http"
 
-	"github.com/google/go-github/v56/github"
+	"github.com/google/go-github/v57/github"
 
 	"github.com/reviewdog/reviewdog/doghouse/server/storage"
 )
diff --git a/doghouse/client/github_client.go b/doghouse/client/github_client.go
index 7ba48737..8cac2edf 100644
--- a/doghouse/client/github_client.go
+++ b/doghouse/client/github_client.go
@@ -3,7 +3,7 @@ package client
 import (
 	"context"
 
-	"github.com/google/go-github/v56/github"
+	"github.com/google/go-github/v57/github"
 
 	"github.com/reviewdog/reviewdog/doghouse"
 	"github.com/reviewdog/reviewdog/doghouse/server"
diff --git a/doghouse/server/doghouse.go b/doghouse/server/doghouse.go
index ebb3d220..c47c5d0d 100644
--- a/doghouse/server/doghouse.go
+++ b/doghouse/server/doghouse.go
@@ -8,7 +8,7 @@ import (
 	"strings"
 	"time"
 
-	"github.com/google/go-github/v56/github"
+	"github.com/google/go-github/v57/github"
 
 	"github.com/reviewdog/reviewdog/diff"
 	"github.com/reviewdog/reviewdog/doghouse"
diff --git a/doghouse/server/github.go b/doghouse/server/github.go
index d35605a1..382e46f0 100644
--- a/doghouse/server/github.go
+++ b/doghouse/server/github.go
@@ -6,7 +6,7 @@ import (
 	"net/http"
 
 	"github.com/bradleyfalzon/ghinstallation/v2"
-	"github.com/google/go-github/v56/github"
+	"github.com/google/go-github/v57/github"
 )
 
 type NewGitHubClientOption struct {
diff --git a/doghouse/server/github_checker.go b/doghouse/server/github_checker.go
index e7fc411d..d7cd3c9a 100644
--- a/doghouse/server/github_checker.go
+++ b/doghouse/server/github_checker.go
@@ -5,7 +5,7 @@ import (
 	"io"
 	"time"
 
-	"github.com/google/go-github/v56/github"
+	"github.com/google/go-github/v57/github"
 	"github.com/vvakame/sdlog/aelog"
 )
 
diff --git a/go.mod b/go.mod
index b3ef4a9a..850860fa 100644
--- a/go.mod
+++ b/go.mod
@@ -14,7 +14,7 @@ require (
 	github.com/bradleyfalzon/ghinstallation/v2 v2.8.0
 	github.com/golang/protobuf v1.5.3
 	github.com/google/go-cmp v0.6.0
-	github.com/google/go-github/v56 v56.0.0
+	github.com/google/go-github/v57 v57.0.0
 	github.com/haya14busa/go-actions-toolkit v0.0.0-20200105081403-ca0307860f01
 	github.com/haya14busa/secretbox v0.0.0-20180525171038-07c7ecf409f5
 	github.com/justinas/nosurf v1.1.1
@@ -42,6 +42,7 @@ require (
 	github.com/davecgh/go-spew v1.1.1 // indirect
 	github.com/golang-jwt/jwt/v4 v4.5.0 // indirect
 	github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
+	github.com/google/go-github/v56 v56.0.0 // indirect
 	github.com/google/go-querystring v1.1.0 // indirect
 	github.com/google/s2a-go v0.1.4 // indirect
 	github.com/googleapis/enterprise-certificate-proxy v0.2.5 // indirect
diff --git a/go.sum b/go.sum
index e2b3c860..40a1273c 100644
--- a/go.sum
+++ b/go.sum
@@ -158,6 +158,8 @@ github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
 github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
 github.com/google/go-github/v56 v56.0.0 h1:TysL7dMa/r7wsQi44BjqlwaHvwlFlqkK8CtBWCX3gb4=
 github.com/google/go-github/v56 v56.0.0/go.mod h1:D8cdcX98YWJvi7TLo7zM4/h8ZTx6u6fwGEkCdisopo0=
+github.com/google/go-github/v57 v57.0.0 h1:L+Y3UPTY8ALM8x+TV0lg+IEBI+upibemtBD8Q9u7zHs=
+github.com/google/go-github/v57 v57.0.0/go.mod h1:s0omdnye0hvK/ecLvpsGfJMiRt85PimQh4oygmLIxHw=
 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/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs=
diff --git a/scripts/trigger-depup/go.mod b/scripts/trigger-depup/go.mod
index 42ad0591..d83fca19 100644
--- a/scripts/trigger-depup/go.mod
+++ b/scripts/trigger-depup/go.mod
@@ -3,7 +3,7 @@ module github.com/reviewdog/reviewdog/scripts/trigger-depup
 go 1.21
 
 require (
-	github.com/google/go-github/v56 v56.0.0
+	github.com/google/go-github/v57 v57.0.0
 	golang.org/x/oauth2 v0.15.0
 )
 
diff --git a/scripts/trigger-depup/go.sum b/scripts/trigger-depup/go.sum
index c8aae6ec..33b743bb 100644
--- a/scripts/trigger-depup/go.sum
+++ b/scripts/trigger-depup/go.sum
@@ -4,10 +4,10 @@ github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg
 github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
 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-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
-github.com/google/go-github/v56 v56.0.0 h1:TysL7dMa/r7wsQi44BjqlwaHvwlFlqkK8CtBWCX3gb4=
-github.com/google/go-github/v56 v56.0.0/go.mod h1:D8cdcX98YWJvi7TLo7zM4/h8ZTx6u6fwGEkCdisopo0=
+github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
+github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
+github.com/google/go-github/v57 v57.0.0 h1:L+Y3UPTY8ALM8x+TV0lg+IEBI+upibemtBD8Q9u7zHs=
+github.com/google/go-github/v57 v57.0.0/go.mod h1:s0omdnye0hvK/ecLvpsGfJMiRt85PimQh4oygmLIxHw=
 github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=
 github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU=
 golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
diff --git a/scripts/trigger-depup/main.go b/scripts/trigger-depup/main.go
index 7fb5d199..8efa73f1 100644
--- a/scripts/trigger-depup/main.go
+++ b/scripts/trigger-depup/main.go
@@ -10,7 +10,7 @@ import (
 	"os"
 	"strings"
 
-	"github.com/google/go-github/v56/github"
+	"github.com/google/go-github/v57/github"
 	"golang.org/x/oauth2"
 )
 
diff --git a/service/github/github.go b/service/github/github.go
index 5b1ef13e..a50cb6ef 100644
--- a/service/github/github.go
+++ b/service/github/github.go
@@ -11,7 +11,7 @@ import (
 	"strings"
 	"sync"
 
-	"github.com/google/go-github/v56/github"
+	"github.com/google/go-github/v57/github"
 
 	"github.com/reviewdog/reviewdog"
 	"github.com/reviewdog/reviewdog/cienv"


Test patch:
diff --git a/doghouse/server/doghouse_test.go b/doghouse/server/doghouse_test.go
index efd5779c..7f33ce96 100644
--- a/doghouse/server/doghouse_test.go
+++ b/doghouse/server/doghouse_test.go
@@ -9,7 +9,7 @@ import (
 	"testing"
 
 	"github.com/google/go-cmp/cmp"
-	"github.com/google/go-github/v56/github"
+	"github.com/google/go-github/v57/github"
 
 	"github.com/reviewdog/reviewdog/doghouse"
 	"github.com/reviewdog/reviewdog/filter"
diff --git a/service/github/github_test.go b/service/github/github_test.go
index 02b73b5c..4abf2e99 100644
--- a/service/github/github_test.go
+++ b/service/github/github_test.go
@@ -10,7 +10,7 @@ import (
 	"strings"
 	"testing"
 
-	"github.com/google/go-github/v56/github"
+	"github.com/google/go-github/v57/github"
 	"github.com/kylelemons/godebug/pretty"
 	"golang.org/x/oauth2"