From e57c712998694db42e0e4b788aa703f3a60492ea Mon Sep 17 00:00:00 2001 From: ahrav Date: Thu, 10 Oct 2024 06:16:40 -0700 Subject: [PATCH] Manually upgrade github dep (#3387) --- go.mod | 2 +- go.sum | 2 ++ pkg/analyzer/analyzers/github/classic/classictoken.go | 2 +- pkg/analyzer/analyzers/github/common/github.go | 2 +- pkg/analyzer/analyzers/github/finegrained/finegrained.go | 2 +- .../analyzers/github/finegrained/finegrained_test.go | 2 +- pkg/analyzer/analyzers/github/github.go | 2 +- pkg/sources/git/git.go | 2 +- pkg/sources/github/connector.go | 3 ++- pkg/sources/github/connector_app.go | 2 +- pkg/sources/github/connector_basicauth.go | 2 +- pkg/sources/github/connector_token.go | 2 +- pkg/sources/github/connector_unauthenticated.go | 3 ++- pkg/sources/github/github.go | 2 +- pkg/sources/github/github_test.go | 2 +- pkg/sources/github/repo.go | 2 +- pkg/sources/github_experimental/github_experimental.go | 2 +- pkg/sources/github_experimental/object_discovery.go | 5 +++-- pkg/sources/github_experimental/repo.go | 2 +- 19 files changed, 24 insertions(+), 19 deletions(-) diff --git a/go.mod b/go.mod index dcb8d22faaf4..aa0842bb8e7c 100644 --- a/go.mod +++ b/go.mod @@ -54,7 +54,7 @@ require ( github.com/golang-jwt/jwt/v4 v4.5.0 github.com/google/go-cmp v0.6.0 github.com/google/go-containerregistry v0.20.2 - github.com/google/go-github/v63 v63.0.0 + github.com/google/go-github/v66 v66.0.0 github.com/google/uuid v1.6.0 github.com/googleapis/gax-go/v2 v2.13.0 github.com/hashicorp/go-retryablehttp v0.7.7 diff --git a/go.sum b/go.sum index 7d2f0f2eb29f..6a68ae969777 100644 --- a/go.sum +++ b/go.sum @@ -418,6 +418,8 @@ github.com/google/go-github/v62 v62.0.0 h1:/6mGCaRywZz9MuHyw9gD1CwsbmBX8GWsbFkwM github.com/google/go-github/v62 v62.0.0/go.mod h1:EMxeUqGJq2xRu9DYBMwel/mr7kZrzUOfQmmpYrZn2a4= github.com/google/go-github/v63 v63.0.0 h1:13xwK/wk9alSokujB9lJkuzdmQuVn2QCPeck76wR3nE= github.com/google/go-github/v63 v63.0.0/go.mod h1:IqbcrgUmIcEaioWrGYei/09o+ge5vhffGOcxrO0AfmA= +github.com/google/go-github/v66 v66.0.0 h1:ADJsaXj9UotwdgK8/iFZtv7MLc8E8WBl62WLd/D/9+M= +github.com/google/go-github/v66 v66.0.0/go.mod h1:+4SO9Zkuyf8ytMj0csN1NR/5OTR+MfqPp8P8dVlcvY4= github.com/google/go-querystring v0.0.0-20170111101155-53e6ce116135/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/pkg/analyzer/analyzers/github/classic/classictoken.go b/pkg/analyzer/analyzers/github/classic/classictoken.go index 49dfb98a08b0..fb9a3fbefc49 100644 --- a/pkg/analyzer/analyzers/github/classic/classictoken.go +++ b/pkg/analyzer/analyzers/github/classic/classictoken.go @@ -8,7 +8,7 @@ import ( "strings" "github.com/fatih/color" - gh "github.com/google/go-github/v63/github" + gh "github.com/google/go-github/v66/github" "github.com/jedib0t/go-pretty/v6/table" "github.com/trufflesecurity/trufflehog/v3/pkg/analyzer/analyzers" diff --git a/pkg/analyzer/analyzers/github/common/github.go b/pkg/analyzer/analyzers/github/common/github.go index 298e921b7850..f77767f05b45 100644 --- a/pkg/analyzer/analyzers/github/common/github.go +++ b/pkg/analyzer/analyzers/github/common/github.go @@ -8,7 +8,7 @@ import ( "time" "github.com/fatih/color" - gh "github.com/google/go-github/v63/github" + gh "github.com/google/go-github/v66/github" "github.com/jedib0t/go-pretty/table" "github.com/trufflesecurity/trufflehog/v3/pkg/analyzer/analyzers" diff --git a/pkg/analyzer/analyzers/github/finegrained/finegrained.go b/pkg/analyzer/analyzers/github/finegrained/finegrained.go index 20b46cf39b6a..fd2ee2d62f7e 100644 --- a/pkg/analyzer/analyzers/github/finegrained/finegrained.go +++ b/pkg/analyzer/analyzers/github/finegrained/finegrained.go @@ -11,7 +11,7 @@ import ( "strings" "github.com/fatih/color" - gh "github.com/google/go-github/v63/github" + gh "github.com/google/go-github/v66/github" "github.com/jedib0t/go-pretty/v6/table" "github.com/trufflesecurity/trufflehog/v3/pkg/analyzer/analyzers/github/common" diff --git a/pkg/analyzer/analyzers/github/finegrained/finegrained_test.go b/pkg/analyzer/analyzers/github/finegrained/finegrained_test.go index 2e2decc8af7a..42b4b18392bd 100644 --- a/pkg/analyzer/analyzers/github/finegrained/finegrained_test.go +++ b/pkg/analyzer/analyzers/github/finegrained/finegrained_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - gh "github.com/google/go-github/v63/github" + gh "github.com/google/go-github/v66/github" "github.com/trufflesecurity/trufflehog/v3/pkg/analyzer/analyzers" analyzerCommon "github.com/trufflesecurity/trufflehog/v3/pkg/analyzer/analyzers/github/common" diff --git a/pkg/analyzer/analyzers/github/github.go b/pkg/analyzer/analyzers/github/github.go index 08dbf5842017..d8b3e9c3d8aa 100644 --- a/pkg/analyzer/analyzers/github/github.go +++ b/pkg/analyzer/analyzers/github/github.go @@ -6,7 +6,7 @@ import ( "time" "github.com/fatih/color" - gh "github.com/google/go-github/v63/github" + gh "github.com/google/go-github/v66/github" "github.com/trufflesecurity/trufflehog/v3/pkg/analyzer/analyzers" "github.com/trufflesecurity/trufflehog/v3/pkg/analyzer/analyzers/github/classic" diff --git a/pkg/sources/git/git.go b/pkg/sources/git/git.go index d9992dadecfd..ca6f82f967b6 100644 --- a/pkg/sources/git/git.go +++ b/pkg/sources/git/git.go @@ -19,7 +19,7 @@ import ( "github.com/go-git/go-git/v5" "github.com/go-git/go-git/v5/plumbing" "github.com/go-git/go-git/v5/plumbing/object" - "github.com/google/go-github/v63/github" + "github.com/google/go-github/v66/github" "golang.org/x/oauth2" "golang.org/x/sync/semaphore" "google.golang.org/protobuf/proto" diff --git a/pkg/sources/github/connector.go b/pkg/sources/github/connector.go index 707c2fa7f062..215e16dfb988 100644 --- a/pkg/sources/github/connector.go +++ b/pkg/sources/github/connector.go @@ -4,7 +4,8 @@ import ( "fmt" gogit "github.com/go-git/go-git/v5" - "github.com/google/go-github/v63/github" + "github.com/google/go-github/v66/github" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" "github.com/trufflesecurity/trufflehog/v3/pkg/pb/sourcespb" ) diff --git a/pkg/sources/github/connector_app.go b/pkg/sources/github/connector_app.go index 925c7748fce9..7b9b46280b62 100644 --- a/pkg/sources/github/connector_app.go +++ b/pkg/sources/github/connector_app.go @@ -6,7 +6,7 @@ import ( "github.com/bradleyfalzon/ghinstallation/v2" gogit "github.com/go-git/go-git/v5" - "github.com/google/go-github/v63/github" + "github.com/google/go-github/v66/github" "github.com/trufflesecurity/trufflehog/v3/pkg/common" "github.com/trufflesecurity/trufflehog/v3/pkg/context" "github.com/trufflesecurity/trufflehog/v3/pkg/pb/credentialspb" diff --git a/pkg/sources/github/connector_basicauth.go b/pkg/sources/github/connector_basicauth.go index eda81fa02753..ced74668f6b7 100644 --- a/pkg/sources/github/connector_basicauth.go +++ b/pkg/sources/github/connector_basicauth.go @@ -4,7 +4,7 @@ import ( "fmt" gogit "github.com/go-git/go-git/v5" - "github.com/google/go-github/v63/github" + "github.com/google/go-github/v66/github" "github.com/trufflesecurity/trufflehog/v3/pkg/common" "github.com/trufflesecurity/trufflehog/v3/pkg/context" "github.com/trufflesecurity/trufflehog/v3/pkg/pb/credentialspb" diff --git a/pkg/sources/github/connector_token.go b/pkg/sources/github/connector_token.go index f45ad9ca1233..d69221f7ed59 100644 --- a/pkg/sources/github/connector_token.go +++ b/pkg/sources/github/connector_token.go @@ -6,7 +6,7 @@ import ( "sync" gogit "github.com/go-git/go-git/v5" - "github.com/google/go-github/v63/github" + "github.com/google/go-github/v66/github" "github.com/trufflesecurity/trufflehog/v3/pkg/common" "github.com/trufflesecurity/trufflehog/v3/pkg/context" "github.com/trufflesecurity/trufflehog/v3/pkg/sources/git" diff --git a/pkg/sources/github/connector_unauthenticated.go b/pkg/sources/github/connector_unauthenticated.go index fb2b867154fa..ecc70a7a2065 100644 --- a/pkg/sources/github/connector_unauthenticated.go +++ b/pkg/sources/github/connector_unauthenticated.go @@ -4,7 +4,8 @@ import ( "fmt" gogit "github.com/go-git/go-git/v5" - "github.com/google/go-github/v63/github" + "github.com/google/go-github/v66/github" + "github.com/trufflesecurity/trufflehog/v3/pkg/common" "github.com/trufflesecurity/trufflehog/v3/pkg/context" "github.com/trufflesecurity/trufflehog/v3/pkg/sources/git" diff --git a/pkg/sources/github/github.go b/pkg/sources/github/github.go index e3e492bba359..b5d3ef90e487 100644 --- a/pkg/sources/github/github.go +++ b/pkg/sources/github/github.go @@ -14,7 +14,7 @@ import ( "time" "github.com/gobwas/glob" - "github.com/google/go-github/v63/github" + "github.com/google/go-github/v66/github" "golang.org/x/exp/rand" "golang.org/x/sync/errgroup" "google.golang.org/protobuf/proto" diff --git a/pkg/sources/github/github_test.go b/pkg/sources/github/github_test.go index edef61bb0873..2965bbf5cb3b 100644 --- a/pkg/sources/github/github_test.go +++ b/pkg/sources/github/github_test.go @@ -17,7 +17,7 @@ import ( "time" "github.com/google/go-cmp/cmp" - "github.com/google/go-github/v63/github" + "github.com/google/go-github/v66/github" "github.com/stretchr/testify/assert" "golang.org/x/sync/errgroup" "google.golang.org/protobuf/types/known/anypb" diff --git a/pkg/sources/github/repo.go b/pkg/sources/github/repo.go index 1f01291ea31f..3e23f64d4f46 100644 --- a/pkg/sources/github/repo.go +++ b/pkg/sources/github/repo.go @@ -9,7 +9,7 @@ import ( "sync" gogit "github.com/go-git/go-git/v5" - "github.com/google/go-github/v63/github" + "github.com/google/go-github/v66/github" "github.com/trufflesecurity/trufflehog/v3/pkg/context" "github.com/trufflesecurity/trufflehog/v3/pkg/giturl" diff --git a/pkg/sources/github_experimental/github_experimental.go b/pkg/sources/github_experimental/github_experimental.go index fecf5c273dd2..115a0a70b9e0 100644 --- a/pkg/sources/github_experimental/github_experimental.go +++ b/pkg/sources/github_experimental/github_experimental.go @@ -6,7 +6,7 @@ import ( "strings" "github.com/go-logr/logr" - "github.com/google/go-github/v63/github" + "github.com/google/go-github/v66/github" "google.golang.org/protobuf/proto" "google.golang.org/protobuf/types/known/anypb" diff --git a/pkg/sources/github_experimental/object_discovery.go b/pkg/sources/github_experimental/object_discovery.go index 10ef15e00c1e..db2c72ad6fa4 100644 --- a/pkg/sources/github_experimental/object_discovery.go +++ b/pkg/sources/github_experimental/object_discovery.go @@ -11,13 +11,14 @@ import ( "strings" "time" - "github.com/google/go-github/v63/github" + "github.com/google/go-github/v66/github" "github.com/k0kubun/go-ansi" "github.com/schollz/progressbar/v3" + "golang.org/x/oauth2" + "github.com/trufflesecurity/trufflehog/v3/pkg/context" "github.com/trufflesecurity/trufflehog/v3/pkg/sources" "github.com/trufflesecurity/trufflehog/v3/pkg/sources/git" - "golang.org/x/oauth2" ) // Assumption: sleeping for 60 seconds is enough to reset the secondary rate limit diff --git a/pkg/sources/github_experimental/repo.go b/pkg/sources/github_experimental/repo.go index bbe87ef38227..73d36f3d9c54 100644 --- a/pkg/sources/github_experimental/repo.go +++ b/pkg/sources/github_experimental/repo.go @@ -5,7 +5,7 @@ import ( "strings" "sync" - "github.com/google/go-github/v63/github" + "github.com/google/go-github/v66/github" "github.com/trufflesecurity/trufflehog/v3/pkg/giturl" "github.com/trufflesecurity/trufflehog/v3/pkg/pb/source_metadatapb"