Repository: reviewdog/reviewdog
Pull request #1593 (2023-10-12 00:14:55)

fix(deps): update module github.com/google/go-github/v55 to v56
[![Mend Renovate](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/v55](https://togithub.com/google/go-github) | require | major | `v55.0.0` -> `v56.0.0` |

---

### Release Notes

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

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

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

This release contains the following breaking API changes:

-   Remove ListServiceHooks ([#&#8203;2917](https://togithub.com/google/go-github/issues/2917))
-   Fix SecretScanning API by switching arguments from url to json ([#&#8203;2934](https://togithub.com/google/go-github/issues/2934))
-   Remove openpgp and change CreateCommit signature ([#&#8203;2935](https://togithub.com/google/go-github/issues/2935))
-   Allow up to maxRedirects upon receiving HTTP 301 status ([#&#8203;2939](https://togithub.com/google/go-github/issues/2939))
-   Escape branch string before inserting it in URL ([#&#8203;2948](https://togithub.com/google/go-github/issues/2948))
-   Create MarkdownService, EmojisService, CodesOfConductService and MetaService ([#&#8203;2937](https://togithub.com/google/go-github/issues/2937))
-   Support options for GetCodeownersErrors ([#&#8203;2953](https://togithub.com/google/go-github/issues/2953))

(NOTE: In particular, please play close attention to [#&#8203;2948](https://togithub.com/google/go-github/issues/2948) as it may affect the code around the call.
Specifically, you may be required to remove any escaping that you perform prior to calling the modified methods.)

...and the following additional changes:

-   Bump go-github from v54 to v55 in /scrape ([#&#8203;2915](https://togithub.com/google/go-github/issues/2915))
-   Add enterprise runner group operations ([#&#8203;2891](https://togithub.com/google/go-github/issues/2891))
-   Add GenerateEnterpriseJITConfig ([#&#8203;2890](https://togithub.com/google/go-github/issues/2890))
-   Fix linting ([#&#8203;2903](https://togithub.com/google/go-github/issues/2903))
-   Handle encoding value of "none" ([#&#8203;2924](https://togithub.com/google/go-github/issues/2924))
-   Correct NewEnterpriseClient deprecation message ([#&#8203;2923](https://togithub.com/google/go-github/issues/2923))
-   Fix golangci-lint timeout failures ([#&#8203;2931](https://togithub.com/google/go-github/issues/2931))
-   Bump golang.org/x/net from 0.14.0 to 0.15.0 in /scrape ([#&#8203;2925](https://togithub.com/google/go-github/issues/2925))
-   Add missing secret scanning alert fields ([#&#8203;2930](https://togithub.com/google/go-github/issues/2930))
-   Add development scripts ([#&#8203;2928](https://togithub.com/google/go-github/issues/2928))
-   Add enterprise actions permissions endpoints and reorg files ([#&#8203;2920](https://togithub.com/google/go-github/issues/2920))
-   Add SAML SSO audit log fields ([#&#8203;2941](https://togithub.com/google/go-github/issues/2941))
-   Add test for resource JSON marshaling - ActionVariable ([#&#8203;2942](https://togithub.com/google/go-github/issues/2942))
-   Add json marshaling tests for action usage and OIDC types ([#&#8203;2944](https://togithub.com/google/go-github/issues/2944))
-   Add List Installation Requests API ([#&#8203;2947](https://togithub.com/google/go-github/issues/2947))
-   Add support for "performed_via_github_app" and "requested_team" in IssueEvent ([#&#8203;2946](https://togithub.com/google/go-github/issues/2946))
-   Add "organization" field to more events ([#&#8203;2949](https://togithub.com/google/go-github/issues/2949))
-   Add Repository Security Advisories APIs ([#&#8203;2902](https://togithub.com/google/go-github/issues/2902))
-   Bump golang.org/x/net from 0.15.0 to 0.16.0 in /scrape ([#&#8203;2954](https://togithub.com/google/go-github/issues/2954))
-   Add prevent_self_review on repo environments ([#&#8203;2951](https://togithub.com/google/go-github/issues/2951))
-   Add type field to DeploymentBranchPolicy ([#&#8203;2957](https://togithub.com/google/go-github/issues/2957))
-   Bump golang.org/x/net from 0.16.0 to 0.17.0 in /scrape ([#&#8203;2958](https://togithub.com/google/go-github/issues/2958))
-   Bump golang.org/x/net from 0.10.0 to 0.17.0 in /example ([#&#8203;2960](https://togithub.com/google/go-github/issues/2960))
-   Bump version of go-github to v56.0.0 ([#&#8203;2961](https://togithub.com/google/go-github/issues/2961))

</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:eyJjcmVhdGVkSW5WZXIiOiIzNy44LjEiLCJ1cGRhdGVkSW5WZXIiOiIzNy44LjEiLCJ0YXJnZXRCcmFuY2giOiJtYXN0ZXIifQ==-->



Patch:
diff --git a/cmd/reviewdog/main.go b/cmd/reviewdog/main.go
index a7c6a913..3f243bc5 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/v55/github"
+	"github.com/google/go-github/v56/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 9d27001c..f1ed02d3 100644
--- a/doghouse/appengine/github.go
+++ b/doghouse/appengine/github.go
@@ -12,7 +12,7 @@ import (
 	"net/url"
 	"strings"
 
-	"github.com/google/go-github/v55/github"
+	"github.com/google/go-github/v56/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 c10c45e4..da506c45 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/v55/github"
+	"github.com/google/go-github/v56/github"
 
 	"github.com/reviewdog/reviewdog/doghouse/server/storage"
 )
diff --git a/doghouse/client/github_client.go b/doghouse/client/github_client.go
index 3d82e948..7ba48737 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/v55/github"
+	"github.com/google/go-github/v56/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 af62cae8..ebb3d220 100644
--- a/doghouse/server/doghouse.go
+++ b/doghouse/server/doghouse.go
@@ -8,7 +8,7 @@ import (
 	"strings"
 	"time"
 
-	"github.com/google/go-github/v55/github"
+	"github.com/google/go-github/v56/github"
 
 	"github.com/reviewdog/reviewdog/diff"
 	"github.com/reviewdog/reviewdog/doghouse"
diff --git a/doghouse/server/github.go b/doghouse/server/github.go
index 45e718ec..d35605a1 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/v55/github"
+	"github.com/google/go-github/v56/github"
 )
 
 type NewGitHubClientOption struct {
diff --git a/doghouse/server/github_checker.go b/doghouse/server/github_checker.go
index 1c93e673..e7fc411d 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/v55/github"
+	"github.com/google/go-github/v56/github"
 	"github.com/vvakame/sdlog/aelog"
 )
 
diff --git a/go.mod b/go.mod
index b8cd2297..d8b443bd 100644
--- a/go.mod
+++ b/go.mod
@@ -14,7 +14,7 @@ require (
 	github.com/bradleyfalzon/ghinstallation/v2 v2.7.0
 	github.com/golang/protobuf v1.5.3
 	github.com/google/go-cmp v0.6.0
-	github.com/google/go-github/v55 v55.0.0
+	github.com/google/go-github/v56 v56.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
@@ -44,6 +44,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/v55 v55.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 2226ae4d..f163c8e4 100644
--- a/go.sum
+++ b/go.sum
@@ -165,6 +165,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/v55 v55.0.0 h1:4pp/1tNMB9X/LuAhs5i0KQAE40NmiR/y6prLNb9x9cg=
 github.com/google/go-github/v55 v55.0.0/go.mod h1:JLahOTA1DnXzhxEymmFF5PP2tSS9JVNj68mSZNDwskA=
+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-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 1788c9ec..60dad8f0 100644
--- a/scripts/trigger-depup/go.mod
+++ b/scripts/trigger-depup/go.mod
@@ -4,6 +4,7 @@ go 1.21
 
 require (
 	github.com/google/go-github/v55 v55.0.0
+	github.com/google/go-github/v56 v56.0.0
 	golang.org/x/oauth2 v0.13.0
 )
 
diff --git a/scripts/trigger-depup/go.sum b/scripts/trigger-depup/go.sum
index 92791e14..9b4d0388 100644
--- a/scripts/trigger-depup/go.sum
+++ b/scripts/trigger-depup/go.sum
@@ -14,6 +14,7 @@ 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/v55 v55.0.0 h1:4pp/1tNMB9X/LuAhs5i0KQAE40NmiR/y6prLNb9x9cg=
 github.com/google/go-github/v55 v55.0.0/go.mod h1:JLahOTA1DnXzhxEymmFF5PP2tSS9JVNj68mSZNDwskA=
+github.com/google/go-github/v56 v56.0.0/go.mod h1:D8cdcX98YWJvi7TLo7zM4/h8ZTx6u6fwGEkCdisopo0=
 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 df11368e..7fb5d199 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/v55/github"
+	"github.com/google/go-github/v56/github"
 	"golang.org/x/oauth2"
 )
 
diff --git a/service/github/github.go b/service/github/github.go
index 86f60756..b256c8b7 100644
--- a/service/github/github.go
+++ b/service/github/github.go
@@ -8,7 +8,7 @@ import (
 	"strings"
 	"sync"
 
-	"github.com/google/go-github/v55/github"
+	"github.com/google/go-github/v56/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 06667c84..efd5779c 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/v55/github"
+	"github.com/google/go-github/v56/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 3f5fba94..055d6884 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/v55/github"
+	"github.com/google/go-github/v56/github"
 	"github.com/kylelemons/godebug/pretty"
 	"golang.org/x/oauth2"