Skip to content

Commit 40a1dd3

Browse files
committed
Update a lot of go deps.
Signed-off-by: Jeff Mendoza <[email protected]>
1 parent 92f6ce6 commit 40a1dd3

32 files changed

+716
-122
lines changed

go.mod

+10-10
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ go 1.16
44

55
require (
66
github.com/Masterminds/semver/v3 v3.2.1
7-
github.com/bradleyfalzon/ghinstallation/v2 v2.7.0
8-
github.com/evanphx/json-patch v5.6.0+incompatible
7+
github.com/bradleyfalzon/ghinstallation/v2 v2.9.0
8+
github.com/evanphx/json-patch/v5 v5.9.0
99
github.com/gobwas/glob v0.2.3
1010
github.com/golang-jwt/jwt v3.2.2+incompatible // indirect
11-
github.com/google/go-cmp v0.5.9
12-
github.com/google/go-github/v50 v50.2.0
11+
github.com/google/go-cmp v0.6.0
12+
github.com/google/go-github/v59 v59.0.0
1313
github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79
1414
github.com/matryer/is v1.4.0 // indirect
15-
github.com/ossf/scorecard/v4 v4.13.0
16-
github.com/rhysd/actionlint v1.6.26
17-
github.com/rs/zerolog v1.29.1
15+
github.com/ossf/scorecard/v4 v4.13.1
16+
github.com/rhysd/actionlint v1.6.27
17+
github.com/rs/zerolog v1.32.0
1818
github.com/shurcooL/githubv4 v0.0.0-20210725200734-83ba7b4c9228
19-
gocloud.dev v0.34.0
20-
golang.org/x/sync v0.3.0
21-
sigs.k8s.io/yaml v1.3.0
19+
gocloud.dev v0.36.0
20+
golang.org/x/sync v0.6.0
21+
sigs.k8s.io/yaml v1.4.0
2222
)

go.sum

+669-75
Large diffs are not rendered by default.

pkg/config/config.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ import (
2424

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

27-
jsonpatch "github.com/evanphx/json-patch"
28-
"github.com/google/go-github/v50/github"
27+
jsonpatch "github.com/evanphx/json-patch/v5"
28+
"github.com/google/go-github/v59/github"
2929
"github.com/rs/zerolog/log"
3030
"sigs.k8s.io/yaml"
3131
)

pkg/config/config_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"testing"
2424

2525
"github.com/google/go-cmp/cmp"
26-
"github.com/google/go-github/v50/github"
26+
"github.com/google/go-github/v59/github"
2727
"github.com/ossf/allstar/pkg/config/operator"
2828
"sigs.k8s.io/yaml"
2929
)

pkg/config/contents.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"net/http"
2121
"path"
2222

23-
"github.com/google/go-github/v50/github"
23+
"github.com/google/go-github/v59/github"
2424
)
2525

2626
func walkGetContents(ctx context.Context, r repositories, owner, repo, p string,

pkg/enforce/enforce.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import (
3131
"github.com/ossf/allstar/pkg/scorecard"
3232
"golang.org/x/sync/errgroup"
3333

34-
"github.com/google/go-github/v50/github"
34+
"github.com/google/go-github/v59/github"
3535
"github.com/rs/zerolog/log"
3636
)
3737

pkg/enforce/enforce_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"testing"
2525

2626
"github.com/google/go-cmp/cmp"
27-
"github.com/google/go-github/v50/github"
27+
"github.com/google/go-github/v59/github"
2828
"github.com/ossf/allstar/pkg/config/operator"
2929
"github.com/ossf/allstar/pkg/policydef"
3030
)

pkg/ghclients/ghclients.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"net/http"
2222

2323
"github.com/bradleyfalzon/ghinstallation/v2"
24-
"github.com/google/go-github/v50/github"
24+
"github.com/google/go-github/v59/github"
2525
"github.com/gregjones/httpcache"
2626
"github.com/ossf/allstar/pkg/config/operator"
2727
"gocloud.dev/runtimevar"

pkg/issue/issue.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import (
2929
"github.com/ossf/allstar/pkg/config/schedule"
3030
"github.com/rs/zerolog/log"
3131

32-
"github.com/google/go-github/v50/github"
32+
"github.com/google/go-github/v59/github"
3333
)
3434

3535
const issueRepoTitle = "Security Policy violation for repository %q %v"

pkg/issue/issue_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"github.com/ossf/allstar/pkg/config"
2525
"github.com/ossf/allstar/pkg/config/operator"
2626

27-
"github.com/google/go-github/v50/github"
27+
"github.com/google/go-github/v59/github"
2828
)
2929

3030
var listByRepo func(context.Context, string, string,

pkg/policies/action/action.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
"github.com/ossf/allstar/pkg/policydef"
2828
"github.com/rhysd/actionlint"
2929

30-
"github.com/google/go-github/v50/github"
30+
"github.com/google/go-github/v59/github"
3131
"github.com/rs/zerolog/log"
3232
)
3333

pkg/policies/action/action_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"testing"
2323

2424
"github.com/gobwas/glob"
25-
"github.com/google/go-github/v50/github"
25+
"github.com/google/go-github/v59/github"
2626
"github.com/ossf/allstar/pkg/config"
2727
"github.com/rhysd/actionlint"
2828
)

pkg/policies/action/eval.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
"context"
1919
"fmt"
2020

21-
"github.com/google/go-github/v50/github"
21+
"github.com/google/go-github/v59/github"
2222
)
2323

2424
var requireWorkflowOnForRequire = []string{"pull_request", "push"}

pkg/policies/admin/admin.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"github.com/ossf/allstar/pkg/config"
2323
"github.com/ossf/allstar/pkg/policydef"
2424

25-
"github.com/google/go-github/v50/github"
25+
"github.com/google/go-github/v59/github"
2626
"github.com/rs/zerolog/log"
2727
)
2828

pkg/policies/admin/admin_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
"testing"
2020

2121
"github.com/google/go-cmp/cmp"
22-
"github.com/google/go-github/v50/github"
22+
"github.com/google/go-github/v59/github"
2323
"github.com/ossf/allstar/pkg/config"
2424
"github.com/ossf/allstar/pkg/policydef"
2525
)

pkg/policies/binary/binary.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
"github.com/ossf/scorecard/v4/checker"
2828
"github.com/ossf/scorecard/v4/checks"
2929

30-
"github.com/google/go-github/v50/github"
30+
"github.com/google/go-github/v59/github"
3131
"github.com/rs/zerolog/log"
3232
)
3333

pkg/policies/binary/binary_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
"testing"
2020

2121
"github.com/google/go-cmp/cmp"
22-
"github.com/google/go-github/v50/github"
22+
"github.com/google/go-github/v59/github"
2323
"github.com/ossf/allstar/pkg/config"
2424
)
2525

pkg/policies/branch/branch.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"github.com/ossf/allstar/pkg/config"
2424
"github.com/ossf/allstar/pkg/policydef"
2525

26-
"github.com/google/go-github/v50/github"
26+
"github.com/google/go-github/v59/github"
2727
"github.com/rs/zerolog/log"
2828
)
2929

pkg/policies/branch/branch_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"testing"
2323

2424
"github.com/google/go-cmp/cmp"
25-
"github.com/google/go-github/v50/github"
25+
"github.com/google/go-github/v59/github"
2626
"github.com/ossf/allstar/pkg/config"
2727
"github.com/ossf/allstar/pkg/policydef"
2828
)

pkg/policies/codeowners/codeowners.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"github.com/ossf/allstar/pkg/config"
2424
"github.com/ossf/allstar/pkg/policydef"
2525

26-
"github.com/google/go-github/v50/github"
26+
"github.com/google/go-github/v59/github"
2727
"github.com/rs/zerolog/log"
2828
)
2929

@@ -63,7 +63,7 @@ type RepoConfig struct {
6363
}
6464

6565
type repositories interface {
66-
GetCodeownersErrors(ctx context.Context, owner, repo string) (*github.CodeownersErrors, *github.Response, error)
66+
GetCodeownersErrors(ctx context.Context, owner, repo string, op *github.GetCodeownersErrorsOptions) (*github.CodeownersErrors, *github.Response, error)
6767
}
6868

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

134-
codeownererrors, resp, err := rep.GetCodeownersErrors(ctx, owner, repo)
134+
codeownererrors, resp, err := rep.GetCodeownersErrors(ctx, owner, repo, nil)
135135

136136
if err == nil {
137137
// "CODEOWNERS" exists

pkg/policies/codeowners/codeowners_test.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ import (
2121
"testing"
2222

2323
"github.com/google/go-cmp/cmp"
24-
"github.com/google/go-github/v50/github"
24+
"github.com/google/go-github/v59/github"
2525
"github.com/ossf/allstar/pkg/config"
2626
"github.com/ossf/allstar/pkg/policydef"
2727
)
2828

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

3131
type mockRepos struct{}
3232

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

3737
type MockGhClient struct{}
@@ -236,7 +236,7 @@ func TestCheck(t *testing.T) {
236236
}
237237
return nil
238238
}
239-
GetCodeownersErrors = func(ctx context.Context, owner, repo string) (*github.CodeownersErrors, *github.Response, error) {
239+
GetCodeownersErrors = func(ctx context.Context, owner, repo string, op *github.GetCodeownersErrorsOptions) (*github.CodeownersErrors, *github.Response, error) {
240240
if test.CodeOwnPresent {
241241
if test.ErrorCount > 0 {
242242
return &test.CodeOwnErrs, nil, nil

pkg/policies/outside/outside.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"github.com/ossf/allstar/pkg/config"
2424
"github.com/ossf/allstar/pkg/policydef"
2525

26-
"github.com/google/go-github/v50/github"
26+
"github.com/google/go-github/v59/github"
2727
"github.com/rs/zerolog/log"
2828
)
2929

pkg/policies/outside/outside_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
"testing"
2020

2121
"github.com/google/go-cmp/cmp"
22-
"github.com/google/go-github/v50/github"
22+
"github.com/google/go-github/v59/github"
2323
"github.com/ossf/allstar/pkg/config"
2424
"github.com/ossf/allstar/pkg/policydef"
2525
)

pkg/policies/scorecard/scorecard.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
"github.com/ossf/scorecard/v4/checker"
2727
"github.com/ossf/scorecard/v4/checks"
2828

29-
"github.com/google/go-github/v50/github"
29+
"github.com/google/go-github/v59/github"
3030
"github.com/rs/zerolog/log"
3131
)
3232

pkg/policies/scorecard/scorecard_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"testing"
2121

2222
"github.com/google/go-cmp/cmp"
23-
"github.com/google/go-github/v50/github"
23+
"github.com/google/go-github/v59/github"
2424
"github.com/ossf/allstar/pkg/config"
2525
"github.com/ossf/allstar/pkg/scorecard"
2626
"github.com/ossf/scorecard/v4/checker"

pkg/policies/security/security.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"github.com/ossf/allstar/pkg/config"
2323
"github.com/ossf/allstar/pkg/policydef"
2424

25-
"github.com/google/go-github/v50/github"
25+
"github.com/google/go-github/v59/github"
2626
"github.com/rs/zerolog/log"
2727
"github.com/shurcooL/githubv4"
2828
)

pkg/policies/security/security_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
"testing"
2020

2121
"github.com/google/go-cmp/cmp"
22-
"github.com/google/go-github/v50/github"
22+
"github.com/google/go-github/v59/github"
2323
"github.com/ossf/allstar/pkg/config"
2424
"github.com/ossf/allstar/pkg/policydef"
2525
)

pkg/policies/workflow/workflow.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
"github.com/ossf/scorecard/v4/checker"
2727
"github.com/ossf/scorecard/v4/checks"
2828

29-
"github.com/google/go-github/v50/github"
29+
"github.com/google/go-github/v59/github"
3030
"github.com/rs/zerolog/log"
3131
)
3232

pkg/policies/workflow/workflow_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
"testing"
2020

2121
"github.com/google/go-cmp/cmp"
22-
"github.com/google/go-github/v50/github"
22+
"github.com/google/go-github/v59/github"
2323
"github.com/ossf/allstar/pkg/config"
2424
)
2525

pkg/policydef/policydef.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ package policydef
2626
import (
2727
"context"
2828

29-
"github.com/google/go-github/v50/github"
29+
"github.com/google/go-github/v59/github"
3030
)
3131

3232
// Result is returned from a policy check.

pkg/reviewbot/checks.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"time"
88

99
"github.com/bradleyfalzon/ghinstallation/v2"
10-
"github.com/google/go-github/v50/github"
10+
"github.com/google/go-github/v59/github"
1111
"github.com/rs/zerolog/log"
1212
)
1313

pkg/reviewbot/reviewbot.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"net/http"
66

7-
"github.com/google/go-github/v50/github"
7+
"github.com/google/go-github/v59/github"
88
"github.com/rs/zerolog/log"
99
)
1010

0 commit comments

Comments
 (0)