Skip to content

Commit

Permalink
Manually upgrade github dep (#3387)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahrav authored Oct 10, 2024
1 parent bc32592 commit e57c712
Show file tree
Hide file tree
Showing 19 changed files with 24 additions and 19 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
2 changes: 1 addition & 1 deletion pkg/analyzer/analyzers/github/classic/classictoken.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion pkg/analyzer/analyzers/github/common/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion pkg/analyzer/analyzers/github/finegrained/finegrained.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion pkg/analyzer/analyzers/github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion pkg/sources/git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion pkg/sources/github/connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/sources/github/connector_app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion pkg/sources/github/connector_basicauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion pkg/sources/github/connector_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion pkg/sources/github/connector_unauthenticated.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion pkg/sources/github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion pkg/sources/github/github_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion pkg/sources/github/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion pkg/sources/github_experimental/github_experimental.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
5 changes: 3 additions & 2 deletions pkg/sources/github_experimental/object_discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pkg/sources/github_experimental/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit e57c712

Please sign in to comment.