Skip to content

Commit

Permalink
Update go-github version for consistency (#852)
Browse files Browse the repository at this point in the history
Co-authored-by: Azeem Shaikh <azeems@google.com>
  • Loading branch information
azeemshaikh38 and azeemsgoogle committed Aug 13, 2021
1 parent d4701c4 commit b7ddc9a
Show file tree
Hide file tree
Showing 18 changed files with 19 additions and 22 deletions.
2 changes: 1 addition & 1 deletion checker/check_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"context"
"net/http"

"github.com/google/go-github/v32/github"
"github.com/google/go-github/v38/github"
"github.com/shurcooL/githubv4"

"github.com/ossf/scorecard/v2/clients"
Expand Down
2 changes: 1 addition & 1 deletion checks/branch_protection.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"net/http"
"regexp"

"github.com/google/go-github/v32/github"
"github.com/google/go-github/v38/github"

"github.com/ossf/scorecard/v2/checker"
sce "github.com/ossf/scorecard/v2/errors"
Expand Down
2 changes: 1 addition & 1 deletion checks/branch_protection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"net/http"
"testing"

"github.com/google/go-github/v32/github"
"github.com/google/go-github/v38/github"

"github.com/ossf/scorecard/v2/checker"
sce "github.com/ossf/scorecard/v2/errors"
Expand Down
2 changes: 1 addition & 1 deletion checks/ci_tests.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"fmt"
"strings"

"github.com/google/go-github/v32/github"
"github.com/google/go-github/v38/github"

"github.com/ossf/scorecard/v2/checker"
"github.com/ossf/scorecard/v2/clients"
Expand Down
2 changes: 1 addition & 1 deletion checks/contributors.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"fmt"
"strings"

"github.com/google/go-github/v32/github"
"github.com/google/go-github/v38/github"

"github.com/ossf/scorecard/v2/checker"
sce "github.com/ossf/scorecard/v2/errors"
Expand Down
2 changes: 1 addition & 1 deletion checks/fuzzing.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package checks
import (
"fmt"

"github.com/google/go-github/v32/github"
"github.com/google/go-github/v38/github"

"github.com/ossf/scorecard/v2/checker"
sce "github.com/ossf/scorecard/v2/errors"
Expand Down
2 changes: 1 addition & 1 deletion checks/packaging.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"regexp"
"strings"

"github.com/google/go-github/v32/github"
"github.com/google/go-github/v38/github"

"github.com/ossf/scorecard/v2/checker"
sce "github.com/ossf/scorecard/v2/errors"
Expand Down
2 changes: 1 addition & 1 deletion checks/sast.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package checks
import (
"fmt"

"github.com/google/go-github/v32/github"
"github.com/google/go-github/v38/github"

"github.com/ossf/scorecard/v2/checker"
sce "github.com/ossf/scorecard/v2/errors"
Expand Down
2 changes: 1 addition & 1 deletion clients/githubrepo/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"context"
"fmt"

"github.com/google/go-github/v32/github"
"github.com/google/go-github/v38/github"
"github.com/shurcooL/githubv4"

"github.com/ossf/scorecard/v2/clients"
Expand Down
2 changes: 1 addition & 1 deletion clients/githubrepo/tarball.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"path/filepath"
"strings"

"github.com/google/go-github/v32/github"
"github.com/google/go-github/v38/github"

sce "github.com/ossf/scorecard/v2/errors"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"strings"
"time"

"github.com/google/go-github/v32/github"
"github.com/google/go-github/v38/github"
"github.com/shurcooL/githubv4"
"github.com/spf13/cobra"
"go.uber.org/zap"
Expand Down
2 changes: 1 addition & 1 deletion cmd/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"os"
"strings"

"github.com/google/go-github/v32/github"
"github.com/google/go-github/v38/github"
"github.com/shurcooL/githubv4"
"github.com/spf13/cobra"
"go.uber.org/zap"
Expand Down
2 changes: 1 addition & 1 deletion cron/data/update/dependency.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"strings"

"github.com/go-git/go-git/v5"
"github.com/google/go-github/v33/github"
"github.com/google/go-github/v38/github"
"golang.org/x/tools/go/vcs"

"github.com/ossf/scorecard/v2/cron/data"
Expand Down
2 changes: 1 addition & 1 deletion cron/worker/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
// nolint:gosec
_ "net/http/pprof"

"github.com/google/go-github/v32/github"
"github.com/google/go-github/v38/github"
"github.com/shurcooL/githubv4"
"go.opencensus.io/stats/view"
"go.uber.org/zap"
Expand Down
2 changes: 1 addition & 1 deletion e2e/e2e_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"os"
"testing"

"github.com/google/go-github/v32/github"
"github.com/google/go-github/v38/github"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/shurcooL/githubv4"
Expand Down
3 changes: 1 addition & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ require (
github.com/google/addlicense v0.0.0-20210809195240-d43bb61fdfda
github.com/google/go-cmp v0.5.6
github.com/google/go-containerregistry v0.6.0
github.com/google/go-github/v32 v32.1.0
github.com/google/go-github/v33 v33.0.0
github.com/google/go-github/v38 v38.1.0
github.com/h2non/filetype v1.1.1
github.com/jszwec/csvutil v1.5.0
github.com/moby/buildkit v0.8.3
Expand Down
6 changes: 2 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -747,10 +747,8 @@ github.com/google/go-github v17.0.0+incompatible/go.mod h1:zLgOLi98H3fifZn+44m+u
github.com/google/go-github/v28 v28.1.1/go.mod h1:bsqJWQX05omyWVmc00nEUql9mhQyv38lDZ8kPZcQVoM=
github.com/google/go-github/v29 v29.0.2 h1:opYN6Wc7DOz7Ku3Oh4l7prmkOMwEcQxpFtxdU8N8Pts=
github.com/google/go-github/v29 v29.0.2/go.mod h1:CHKiKKPHJ0REzfwc14QMklvtHwCveD0PxlMjLlzAM5E=
github.com/google/go-github/v32 v32.1.0 h1:GWkQOdXqviCPx7Q7Fj+KyPoGm4SwHRh8rheoPhd27II=
github.com/google/go-github/v32 v32.1.0/go.mod h1:rIEpZD9CTDQwDK9GDrtMTycQNA4JU3qBsCizh3q2WCI=
github.com/google/go-github/v33 v33.0.0 h1:qAf9yP0qc54ufQxzwv+u9H0tiVOnPJxo0lI/JXqw3ZM=
github.com/google/go-github/v33 v33.0.0/go.mod h1:GMdDnVZY/2TsWgp/lkYnpSAh6TrzhANBBwm6k6TTEXg=
github.com/google/go-github/v38 v38.1.0 h1:C6h1FkaITcBFK7gAmq4eFzt6gbhEhk7L5z6R3Uva+po=
github.com/google/go-github/v38 v38.1.0/go.mod h1:cStvrz/7nFr0FoENgG6GLbp53WaelXucT+BBz/3VKx4=
github.com/google/go-querystring v1.0.0 h1:Xkwi/a1rcvNg1PPYe5vI8GbeBY/jrVuDX5ASuANWTrk=
github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck=
github.com/google/go-replayers/grpcreplay v0.1.0/go.mod h1:8Ig2Idjpr6gifRd6pNVggX6TC1Zw6Jx74AKp7QNH2QE=
Expand Down
2 changes: 1 addition & 1 deletion pkg/scorecard.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"sync"
"time"

"github.com/google/go-github/v32/github"
"github.com/google/go-github/v38/github"
"github.com/shurcooL/githubv4"
opencensusstats "go.opencensus.io/stats"
"go.opencensus.io/tag"
Expand Down

0 comments on commit b7ddc9a

Please sign in to comment.