Repository: reviewdog/reviewdog
Pull request #1533 (2023-08-16 18:53:27)

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

---

### Release Notes

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

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

[Compare Source](https://togithub.com/google/go-github/compare/v53.2.0...v54.0.0)

This release contains the following breaking API changes:

-   Fix ListPullRequestsWithCommit option type ([#&#8203;2822](https://togithub.com/google/go-github/issues/2822))
-   Support repository_id in org ruleset conditions ([#&#8203;2825](https://togithub.com/google/go-github/issues/2825))
-   Fix repo rules bypass settings ([#&#8203;2831](https://togithub.com/google/go-github/issues/2831))
-   Fix old_name field in AuditEntry ([#&#8203;2849](https://togithub.com/google/go-github/issues/2849))

and the following additional changes:

-   Bump golang.org/x/net from 0.10.0 to 0.11.0 in /scrape ([#&#8203;2814](https://togithub.com/google/go-github/issues/2814))
-   Bump golang.org/x/oauth2 from 0.8.0 to 0.9.0 ([#&#8203;2812](https://togithub.com/google/go-github/issues/2812))
-   Bump github.com/google/go-github/v53 from 53.0.0 to 53.2.0 in /scrape ([#&#8203;2813](https://togithub.com/google/go-github/issues/2813))
-   Add Runner to generate-jitconfig method ([#&#8203;2818](https://togithub.com/google/go-github/issues/2818))
-   Remove unnecessary use of fmt.Sprintf ([#&#8203;2819](https://togithub.com/google/go-github/issues/2819))
-   Use bytes.Equal instead of bytes.Compare ([#&#8203;2820](https://togithub.com/google/go-github/issues/2820))
-   Fix CreateOrUpdateOrgSecret regression introduced in v53 ([#&#8203;2817](https://togithub.com/google/go-github/issues/2817))
-   Add Repository struct to SecretScanningAlert ([#&#8203;2823](https://togithub.com/google/go-github/issues/2823))
-   Add support for personal access tokens request review API ([#&#8203;2827](https://togithub.com/google/go-github/issues/2827))
-   Add support for personal_access_token_request webhook event type ([#&#8203;2826](https://togithub.com/google/go-github/issues/2826))
-   Support line comments on PRs ([#&#8203;2833](https://togithub.com/google/go-github/issues/2833))
-   Implement installation_target webhook event type ([#&#8203;2829](https://togithub.com/google/go-github/issues/2829))
-   Add secret type display to secret scanning alert ([#&#8203;2834](https://togithub.com/google/go-github/issues/2834))
-   Use a sentinel error when blocking paths for RepositoriesServices.GetContents ([#&#8203;2837](https://togithub.com/google/go-github/issues/2837))
-   Add support for SAML SSO authorization APIs ([#&#8203;2835](https://togithub.com/google/go-github/issues/2835))
-   Bump golang.org/x/net from 0.11.0 to 0.12.0 in /scrape ([#&#8203;2839](https://togithub.com/google/go-github/issues/2839))
-   Bump golang.org/x/oauth2 from 0.9.0 to 0.10.0 ([#&#8203;2840](https://togithub.com/google/go-github/issues/2840))
-   Add Dependabot field in security_and_analysis ([#&#8203;2846](https://togithub.com/google/go-github/issues/2846))
-   Add new query params for AlertListOptions ([#&#8203;2848](https://togithub.com/google/go-github/issues/2848))
-   Add old_name field to AuditEntry ([#&#8203;2843](https://togithub.com/google/go-github/issues/2843))
-   Add OldLogin field to AuditEntryData ([#&#8203;2850](https://togithub.com/google/go-github/issues/2850))
-   Check for nil pointer in update rule parameters ([#&#8203;2854](https://togithub.com/google/go-github/issues/2854))
-   Fix dropped test error ([#&#8203;2858](https://togithub.com/google/go-github/issues/2858))
-   Bump golang.org/x/oauth2 from 0.10.0 to 0.11.0 ([#&#8203;2859](https://togithub.com/google/go-github/issues/2859))
-   Bump golang.org/x/net from 0.12.0 to 0.14.0 in /scrape ([#&#8203;2860](https://togithub.com/google/go-github/issues/2860))
-   Add ListOptions pagination for Dependabot alerts ([#&#8203;2853](https://togithub.com/google/go-github/issues/2853))
-   Add support for Security Advisories Request CVE endpoint ([#&#8203;2857](https://togithub.com/google/go-github/issues/2857))
-   Add support for the security and analysis webhook event ([#&#8203;2862](https://togithub.com/google/go-github/issues/2862))
-   Add support for projects_v2 and projects_v2\_item webhook events ([#&#8203;2868](https://togithub.com/google/go-github/issues/2868))
-   Defer closing body before checking HTTP status code ([#&#8203;2870](https://togithub.com/google/go-github/issues/2870))
-   Add GetAutomatedSecurityFixes to report status ([#&#8203;2842](https://togithub.com/google/go-github/issues/2842))
-   Adding missing field important to find branch in fork from same owner ([#&#8203;2873](https://togithub.com/google/go-github/issues/2873))
-   Add WorkflowRun and Workflow to DeploymentEvent ([#&#8203;2755](https://togithub.com/google/go-github/issues/2755))
-   Replace deprectated crypto/ssh/terminal module in examples ([#&#8203;2876](https://togithub.com/google/go-github/issues/2876))
-   Update workflow to use Go 1.21 and 1.20 ([#&#8203;2878](https://togithub.com/google/go-github/issues/2878))
-   Add TriggeringActor to WorkflowRun ([#&#8203;2879](https://togithub.com/google/go-github/issues/2879))
-   Add WebhookTypes and EventForType methods ([#&#8203;2865](https://togithub.com/google/go-github/issues/2865))
-   Add support for fetching SBOMs ([#&#8203;2869](https://togithub.com/google/go-github/issues/2869))
-   Add SubmoduleGitURL to RepositoryContent ([#&#8203;2880](https://togithub.com/google/go-github/issues/2880))
-   Bump version of go-github to v54.0.0 ([#&#8203;2881](https://togithub.com/google/go-github/issues/2881))

</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:eyJjcmVhdGVkSW5WZXIiOiIzNi40My4yIiwidXBkYXRlZEluVmVyIjoiMzYuNDMuMiIsInRhcmdldEJyYW5jaCI6Im1hc3RlciJ9-->



Patch:
diff --git a/cmd/reviewdog/main.go b/cmd/reviewdog/main.go
index b4eaef10..52fab54e 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/v53/github"
+	"github.com/google/go-github/v54/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 50cef5f5..11029c3b 100644
--- a/doghouse/appengine/github.go
+++ b/doghouse/appengine/github.go
@@ -12,7 +12,7 @@ import (
 	"net/url"
 	"strings"
 
-	"github.com/google/go-github/v53/github"
+	"github.com/google/go-github/v54/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 2c8818b8..09866c64 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/v53/github"
+	"github.com/google/go-github/v54/github"
 
 	"github.com/reviewdog/reviewdog/doghouse/server/storage"
 )
diff --git a/doghouse/client/github_client.go b/doghouse/client/github_client.go
index 855c4089..170a015a 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/v53/github"
+	"github.com/google/go-github/v54/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 30e84e68..b0c3c71c 100644
--- a/doghouse/server/doghouse.go
+++ b/doghouse/server/doghouse.go
@@ -8,7 +8,7 @@ import (
 	"strings"
 	"time"
 
-	"github.com/google/go-github/v53/github"
+	"github.com/google/go-github/v54/github"
 
 	"github.com/reviewdog/reviewdog/diff"
 	"github.com/reviewdog/reviewdog/doghouse"
diff --git a/doghouse/server/github.go b/doghouse/server/github.go
index 48e29bc6..8d4d3e83 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/v53/github"
+	"github.com/google/go-github/v54/github"
 )
 
 type NewGitHubClientOption struct {
diff --git a/doghouse/server/github_checker.go b/doghouse/server/github_checker.go
index 335a4af4..6f51393e 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/v53/github"
+	"github.com/google/go-github/v54/github"
 	"github.com/vvakame/sdlog/aelog"
 )
 
diff --git a/go.mod b/go.mod
index 7a6d5655..22f91161 100644
--- a/go.mod
+++ b/go.mod
@@ -14,7 +14,7 @@ require (
 	github.com/bradleyfalzon/ghinstallation/v2 v2.6.0
 	github.com/golang/protobuf v1.5.3
 	github.com/google/go-cmp v0.5.9
-	github.com/google/go-github/v53 v53.2.0
+	github.com/google/go-github/v54 v54.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/v53 v53.2.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 29e3275d..e535c458 100644
--- a/go.sum
+++ b/go.sum
@@ -166,6 +166,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/v53 v53.2.0 h1:wvz3FyF53v4BK+AsnvCmeNhf8AkTaeh2SoYu/XUvTtI=
 github.com/google/go-github/v53 v53.2.0/go.mod h1:XhFRObz+m/l+UCm9b7KSIC3lT3NWSXGt7mOsAWEloao=
+github.com/google/go-github/v54 v54.0.0 h1:OZdXwow4EAD5jEo5qg+dGFH2DpkyZvVsAehjvJuUL/c=
+github.com/google/go-github/v54 v54.0.0/go.mod h1:Sw1LXWHhXRZtzJ9LI5fyJg9wbQzYvFhW8W5P2yaAQ7s=
 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 23a36b74..7fa26b50 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.19
 
 require (
-	github.com/google/go-github/v53 v53.2.0
+	github.com/google/go-github/v54 v54.0.0
 	golang.org/x/oauth2 v0.11.0
 )
 
diff --git a/scripts/trigger-depup/go.sum b/scripts/trigger-depup/go.sum
index 31e8fa66..987fa878 100644
--- a/scripts/trigger-depup/go.sum
+++ b/scripts/trigger-depup/go.sum
@@ -11,8 +11,8 @@ github.com/golang/protobuf v1.5.3/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/v53 v53.2.0 h1:wvz3FyF53v4BK+AsnvCmeNhf8AkTaeh2SoYu/XUvTtI=
-github.com/google/go-github/v53 v53.2.0/go.mod h1:XhFRObz+m/l+UCm9b7KSIC3lT3NWSXGt7mOsAWEloao=
+github.com/google/go-github/v54 v54.0.0 h1:OZdXwow4EAD5jEo5qg+dGFH2DpkyZvVsAehjvJuUL/c=
+github.com/google/go-github/v54 v54.0.0/go.mod h1:Sw1LXWHhXRZtzJ9LI5fyJg9wbQzYvFhW8W5P2yaAQ7s=
 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 5070d4d1..57d5d165 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/v53/github"
+	"github.com/google/go-github/v54/github"
 	"golang.org/x/oauth2"
 )
 
diff --git a/service/github/github.go b/service/github/github.go
index 0c4b7098..5d233c24 100644
--- a/service/github/github.go
+++ b/service/github/github.go
@@ -8,7 +8,7 @@ import (
 	"strings"
 	"sync"
 
-	"github.com/google/go-github/v53/github"
+	"github.com/google/go-github/v54/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 90f412c3..7a216a03 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/v53/github"
+	"github.com/google/go-github/v54/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 f62ed201..297c33b6 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/v53/github"
+	"github.com/google/go-github/v54/github"
 	"github.com/kylelemons/godebug/pretty"
 	"golang.org/x/oauth2"