Skip to content

Commit ce3c0e2

Browse files
authored
Merge pull request #12 from github/go-github-module
Use newer version of `go-github` for Go module support.
2 parents d5faef2 + 0df0a48 commit ce3c0e2

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

.licenses/go/github.com/google/go-github/github.dep.yml renamed to .licenses/go/github.com/google/go-github/v32/github.dep.yml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go.mod

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ go 1.14
44

55
require (
66
github.com/go-git/go-git/v5 v5.1.0
7-
github.com/google/go-github v17.0.0+incompatible
8-
github.com/google/go-querystring v1.0.0 // indirect
7+
github.com/google/go-github/v32 v32.1.0
98
github.com/mitchellh/ioprogress v0.0.0-20180201004757-6a23b12fa88e
109
github.com/pkg/errors v0.8.1
1110
github.com/spf13/cobra v1.0.0

go.sum

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/pull/pull.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"github.com/go-git/go-git/v5/config"
2121
"github.com/go-git/go-git/v5/plumbing"
2222
"github.com/go-git/go-git/v5/plumbing/object"
23-
"github.com/google/go-github/github"
23+
"github.com/google/go-github/v32/github"
2424
"github.com/pkg/errors"
2525
)
2626

@@ -186,7 +186,7 @@ func (pullService *pullService) pullReleases() error {
186186
if err != nil {
187187
return errors.Wrap(err, "Error removing existing cached asset.")
188188
}
189-
reader, redirectURL, err := pullService.githubDotComClient.Repositories.DownloadReleaseAsset(pullService.ctx, sourceOwner, sourceRepository, asset.GetID())
189+
reader, redirectURL, err := pullService.githubDotComClient.Repositories.DownloadReleaseAsset(pullService.ctx, sourceOwner, sourceRepository, asset.GetID(), http.DefaultClient)
190190
if err != nil {
191191
return errors.Wrap(err, "Error downloading asset.")
192192
}

internal/pull/pull_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"github.com/stretchr/testify/require"
1414

1515
"github.com/github/codeql-action-sync/test"
16-
"github.com/google/go-github/github"
16+
"github.com/google/go-github/v32/github"
1717
)
1818

1919
const initialActionRepository = "./pull_test/codeql-action-initial.git"

0 commit comments

Comments
 (0)