Skip to content

Commit

Permalink
Update a lot of go deps.
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Mendoza <jlm@jlm.name>
  • Loading branch information
jeffmendoza committed Feb 27, 2024
1 parent 92f6ce6 commit b48eddb
Show file tree
Hide file tree
Showing 32 changed files with 716 additions and 122 deletions.
20 changes: 10 additions & 10 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ go 1.16

require (
github.com/Masterminds/semver/v3 v3.2.1
github.com/bradleyfalzon/ghinstallation/v2 v2.7.0
github.com/evanphx/json-patch v5.6.0+incompatible
github.com/bradleyfalzon/ghinstallation/v2 v2.9.0
github.com/evanphx/json-patch/v5 v5.9.0
github.com/gobwas/glob v0.2.3
github.com/golang-jwt/jwt v3.2.2+incompatible // indirect
github.com/google/go-cmp v0.5.9
github.com/google/go-github/v50 v50.2.0
github.com/google/go-cmp v0.6.0
github.com/google/go-github/v59 v59.0.0
github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79
github.com/matryer/is v1.4.0 // indirect
github.com/ossf/scorecard/v4 v4.13.0
github.com/rhysd/actionlint v1.6.26
github.com/rs/zerolog v1.29.1
github.com/ossf/scorecard/v4 v4.13.1
github.com/rhysd/actionlint v1.6.27
github.com/rs/zerolog v1.32.0
github.com/shurcooL/githubv4 v0.0.0-20210725200734-83ba7b4c9228
gocloud.dev v0.34.0
golang.org/x/sync v0.3.0
sigs.k8s.io/yaml v1.3.0
gocloud.dev v0.36.0
golang.org/x/sync v0.6.0
sigs.k8s.io/yaml v1.4.0
)
744 changes: 669 additions & 75 deletions go.sum

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import (

"github.com/ossf/allstar/pkg/config/operator"

jsonpatch "github.com/evanphx/json-patch"
"github.com/google/go-github/v50/github"
jsonpatch "github.com/evanphx/json-patch/v5"
"github.com/google/go-github/v59/github"
"github.com/rs/zerolog/log"
"sigs.k8s.io/yaml"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"testing"

"github.com/google/go-cmp/cmp"
"github.com/google/go-github/v50/github"
"github.com/google/go-github/v59/github"
"github.com/ossf/allstar/pkg/config/operator"
"sigs.k8s.io/yaml"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/contents.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"net/http"
"path"

"github.com/google/go-github/v50/github"
"github.com/google/go-github/v59/github"
)

func walkGetContents(ctx context.Context, r repositories, owner, repo, p string,
Expand Down
2 changes: 1 addition & 1 deletion pkg/enforce/enforce.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
"github.com/ossf/allstar/pkg/scorecard"
"golang.org/x/sync/errgroup"

"github.com/google/go-github/v50/github"
"github.com/google/go-github/v59/github"
"github.com/rs/zerolog/log"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/enforce/enforce_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"testing"

"github.com/google/go-cmp/cmp"
"github.com/google/go-github/v50/github"
"github.com/google/go-github/v59/github"
"github.com/ossf/allstar/pkg/config/operator"
"github.com/ossf/allstar/pkg/policydef"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/ghclients/ghclients.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"net/http"

"github.com/bradleyfalzon/ghinstallation/v2"
"github.com/google/go-github/v50/github"
"github.com/google/go-github/v59/github"
"github.com/gregjones/httpcache"
"github.com/ossf/allstar/pkg/config/operator"
"gocloud.dev/runtimevar"
Expand Down
2 changes: 1 addition & 1 deletion pkg/issue/issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
"github.com/ossf/allstar/pkg/config/schedule"
"github.com/rs/zerolog/log"

"github.com/google/go-github/v50/github"
"github.com/google/go-github/v59/github"
)

const issueRepoTitle = "Security Policy violation for repository %q %v"
Expand Down
2 changes: 1 addition & 1 deletion pkg/issue/issue_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"github.com/ossf/allstar/pkg/config"
"github.com/ossf/allstar/pkg/config/operator"

"github.com/google/go-github/v50/github"
"github.com/google/go-github/v59/github"
)

var listByRepo func(context.Context, string, string,
Expand Down
2 changes: 1 addition & 1 deletion pkg/policies/action/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"github.com/ossf/allstar/pkg/policydef"
"github.com/rhysd/actionlint"

"github.com/google/go-github/v50/github"
"github.com/google/go-github/v59/github"
"github.com/rs/zerolog/log"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/policies/action/action_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"testing"

"github.com/gobwas/glob"
"github.com/google/go-github/v50/github"
"github.com/google/go-github/v59/github"
"github.com/ossf/allstar/pkg/config"
"github.com/rhysd/actionlint"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/policies/action/eval.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"context"
"fmt"

"github.com/google/go-github/v50/github"
"github.com/google/go-github/v59/github"
)

var requireWorkflowOnForRequire = []string{"pull_request", "push"}
Expand Down
2 changes: 1 addition & 1 deletion pkg/policies/admin/admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/ossf/allstar/pkg/config"
"github.com/ossf/allstar/pkg/policydef"

"github.com/google/go-github/v50/github"
"github.com/google/go-github/v59/github"
"github.com/rs/zerolog/log"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/policies/admin/admin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"testing"

"github.com/google/go-cmp/cmp"
"github.com/google/go-github/v50/github"
"github.com/google/go-github/v59/github"
"github.com/ossf/allstar/pkg/config"
"github.com/ossf/allstar/pkg/policydef"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/policies/binary/binary.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"github.com/ossf/scorecard/v4/checker"
"github.com/ossf/scorecard/v4/checks"

"github.com/google/go-github/v50/github"
"github.com/google/go-github/v59/github"
"github.com/rs/zerolog/log"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/policies/binary/binary_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"testing"

"github.com/google/go-cmp/cmp"
"github.com/google/go-github/v50/github"
"github.com/google/go-github/v59/github"
"github.com/ossf/allstar/pkg/config"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/policies/branch/branch.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"github.com/ossf/allstar/pkg/config"
"github.com/ossf/allstar/pkg/policydef"

"github.com/google/go-github/v50/github"
"github.com/google/go-github/v59/github"
"github.com/rs/zerolog/log"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/policies/branch/branch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"testing"

"github.com/google/go-cmp/cmp"
"github.com/google/go-github/v50/github"
"github.com/google/go-github/v59/github"
"github.com/ossf/allstar/pkg/config"
"github.com/ossf/allstar/pkg/policydef"
)
Expand Down
6 changes: 3 additions & 3 deletions pkg/policies/codeowners/codeowners.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"github.com/ossf/allstar/pkg/config"
"github.com/ossf/allstar/pkg/policydef"

"github.com/google/go-github/v50/github"
"github.com/google/go-github/v59/github"
"github.com/rs/zerolog/log"
)

Expand Down Expand Up @@ -63,7 +63,7 @@ type RepoConfig struct {
}

type repositories interface {
GetCodeownersErrors(ctx context.Context, owner, repo string) (*github.CodeownersErrors, *github.Response, error)
GetCodeownersErrors(ctx context.Context, owner, repo string, op *github.GetCodeownersErrorsOptions) (*github.CodeownersErrors, *github.Response, error)
}

type mergedConfig struct {
Expand Down Expand Up @@ -131,7 +131,7 @@ func check(ctx context.Context, rep repositories, c *github.Client, owner,
Bool("enabled", enabled).
Msg("Check repo enabled")

codeownererrors, resp, err := rep.GetCodeownersErrors(ctx, owner, repo)
codeownererrors, resp, err := rep.GetCodeownersErrors(ctx, owner, repo, nil)

if err == nil {
// "CODEOWNERS" exists
Expand Down
10 changes: 5 additions & 5 deletions pkg/policies/codeowners/codeowners_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ import (
"testing"

"github.com/google/go-cmp/cmp"
"github.com/google/go-github/v50/github"
"github.com/google/go-github/v59/github"
"github.com/ossf/allstar/pkg/config"
"github.com/ossf/allstar/pkg/policydef"
)

var GetCodeownersErrors func(ctx context.Context, owner, repo string) (*github.CodeownersErrors, *github.Response, error)
var GetCodeownersErrors func(ctx context.Context, owner, repo string, op *github.GetCodeownersErrorsOptions) (*github.CodeownersErrors, *github.Response, error)

type mockRepos struct{}

func (m mockRepos) GetCodeownersErrors(ctx context.Context, owner, repo string) (*github.CodeownersErrors, *github.Response, error) {
return GetCodeownersErrors(ctx, owner, repo)
func (m mockRepos) GetCodeownersErrors(ctx context.Context, owner, repo string, op *github.GetCodeownersErrorsOptions) (*github.CodeownersErrors, *github.Response, error) {
return GetCodeownersErrors(ctx, owner, repo, op)
}

type MockGhClient struct{}
Expand Down Expand Up @@ -236,7 +236,7 @@ func TestCheck(t *testing.T) {
}
return nil
}
GetCodeownersErrors = func(ctx context.Context, owner, repo string) (*github.CodeownersErrors, *github.Response, error) {
GetCodeownersErrors = func(ctx context.Context, owner, repo string, op *github.GetCodeownersErrorsOptions) (*github.CodeownersErrors, *github.Response, error) {
if test.CodeOwnPresent {
if test.ErrorCount > 0 {
return &test.CodeOwnErrs, nil, nil
Expand Down
2 changes: 1 addition & 1 deletion pkg/policies/outside/outside.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"github.com/ossf/allstar/pkg/config"
"github.com/ossf/allstar/pkg/policydef"

"github.com/google/go-github/v50/github"
"github.com/google/go-github/v59/github"
"github.com/rs/zerolog/log"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/policies/outside/outside_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"testing"

"github.com/google/go-cmp/cmp"
"github.com/google/go-github/v50/github"
"github.com/google/go-github/v59/github"
"github.com/ossf/allstar/pkg/config"
"github.com/ossf/allstar/pkg/policydef"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/policies/scorecard/scorecard.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"github.com/ossf/scorecard/v4/checker"
"github.com/ossf/scorecard/v4/checks"

"github.com/google/go-github/v50/github"
"github.com/google/go-github/v59/github"
"github.com/rs/zerolog/log"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/policies/scorecard/scorecard_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"testing"

"github.com/google/go-cmp/cmp"
"github.com/google/go-github/v50/github"
"github.com/google/go-github/v59/github"
"github.com/ossf/allstar/pkg/config"
"github.com/ossf/allstar/pkg/scorecard"
"github.com/ossf/scorecard/v4/checker"
Expand Down
2 changes: 1 addition & 1 deletion pkg/policies/security/security.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/ossf/allstar/pkg/config"
"github.com/ossf/allstar/pkg/policydef"

"github.com/google/go-github/v50/github"
"github.com/google/go-github/v59/github"
"github.com/rs/zerolog/log"
"github.com/shurcooL/githubv4"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/policies/security/security_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"testing"

"github.com/google/go-cmp/cmp"
"github.com/google/go-github/v50/github"
"github.com/google/go-github/v59/github"
"github.com/ossf/allstar/pkg/config"
"github.com/ossf/allstar/pkg/policydef"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/policies/workflow/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"github.com/ossf/scorecard/v4/checker"
"github.com/ossf/scorecard/v4/checks"

"github.com/google/go-github/v50/github"
"github.com/google/go-github/v59/github"
"github.com/rs/zerolog/log"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/policies/workflow/workflow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"testing"

"github.com/google/go-cmp/cmp"
"github.com/google/go-github/v50/github"
"github.com/google/go-github/v59/github"
"github.com/ossf/allstar/pkg/config"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/policydef/policydef.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ package policydef
import (
"context"

"github.com/google/go-github/v50/github"
"github.com/google/go-github/v59/github"
)

// Result is returned from a policy check.
Expand Down
2 changes: 1 addition & 1 deletion pkg/reviewbot/checks.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"time"

"github.com/bradleyfalzon/ghinstallation/v2"
"github.com/google/go-github/v50/github"
"github.com/google/go-github/v59/github"
"github.com/rs/zerolog/log"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/reviewbot/reviewbot.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"net/http"

"github.com/google/go-github/v50/github"
"github.com/google/go-github/v59/github"
"github.com/rs/zerolog/log"
)

Expand Down

0 comments on commit b48eddb

Please sign in to comment.