Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update module github.com/google/go-github/v59 to v60 - autoclosed #1073

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion compiler/native/compile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"github.com/go-vela/types/constants"
"github.com/go-vela/types/raw"

"github.com/google/go-github/v59/github"
"github.com/google/go-github/v60/github"

"testing"
"time"
Expand Down Expand Up @@ -1815,7 +1815,7 @@
}

compiler.WithMetadata(m)
compiler.WithRepo(&library.Repo{PipelineType: &tt.args.pipelineType})

Check failure on line 1818 in compiler/native/compile_test.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] compiler/native/compile_test.go#L1818

G601: Implicit memory aliasing in for loop. (gosec)
Raw output
compiler/native/compile_test.go:1818:50: G601: Implicit memory aliasing in for loop. (gosec)
			compiler.WithRepo(&library.Repo{PipelineType: &tt.args.pipelineType})
			                                              ^

got, _, err := compiler.Compile(yaml)
if err != nil {
Expand Down Expand Up @@ -3126,7 +3126,7 @@
compiler.WithMetadata(m)

if tt.args.pipelineType != "" {
compiler.WithRepo(&library.Repo{PipelineType: &tt.args.pipelineType})

Check failure on line 3129 in compiler/native/compile_test.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] compiler/native/compile_test.go#L3129

G601: Implicit memory aliasing in for loop. (gosec)
Raw output
compiler/native/compile_test.go:3129:51: G601: Implicit memory aliasing in for loop. (gosec)
				compiler.WithRepo(&library.Repo{PipelineType: &tt.args.pipelineType})
				                                              ^
}

got, _, err := compiler.Compile(yaml)
Expand Down
2 changes: 1 addition & 1 deletion compiler/registry/github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"net/url"
"strings"

"github.com/google/go-github/v59/github"
"github.com/google/go-github/v60/github"
"golang.org/x/oauth2"
)

Expand Down
2 changes: 1 addition & 1 deletion compiler/registry/github/github_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"reflect"
"testing"

"github.com/google/go-github/v59/github"
"github.com/google/go-github/v60/github"
"golang.org/x/oauth2"
)

Expand Down
2 changes: 1 addition & 1 deletion compiler/registry/github/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

"github.com/go-vela/types/library"

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

// Template captures the templated pipeline configuration from the GitHub repo.
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ require (
github.com/go-vela/types v0.23.4-0.20240401132228-9b43c701ab32
github.com/golang-jwt/jwt/v5 v5.2.1
github.com/google/go-cmp v0.6.0
github.com/google/go-github/v59 v59.0.0
github.com/google/go-github/v60 v60.0.0
github.com/google/uuid v1.6.0
github.com/goware/urlx v0.3.2
github.com/hashicorp/go-cleanhttp v0.5.2
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/google/go-github/v59 v59.0.0 h1:7h6bgpF5as0YQLLkEiVqpgtJqjimMYhBkD4jT5aN3VA=
github.com/google/go-github/v59 v59.0.0/go.mod h1:rJU4R0rQHFVFDOkqGWxfLNo6vEk4dv40oDjhV/gH6wM=
github.com/google/go-github/v60 v60.0.0 h1:oLG98PsLauFvvu4D/YPxq374jhSxFYdzQGNCyONLfn8=
github.com/google/go-github/v60 v60.0.0/go.mod h1:ByhX2dP9XT9o/ll2yXAu2VD8l5eNVg8hD4Cr0S/LmQk=
github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=
github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU=
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
Expand Down
2 changes: 1 addition & 1 deletion scm/github/access.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: Apache-2.0

Check failure on line 1 in scm/github/access.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] scm/github/access.go#L1

: # github.com/go-vela/server/scm/github [github.com/go-vela/server/scm/github.test]
Raw output
scm/github/access.go:1: : # github.com/go-vela/server/scm/github [github.com/go-vela/server/scm/github.test]

package github

Expand All @@ -9,7 +9,7 @@
"github.com/sirupsen/logrus"

"github.com/go-vela/types/library"
"github.com/google/go-github/v59/github"
"github.com/google/go-github/v60/github"
)

// OrgAccess captures the user's access level for an org.
Expand Down
2 changes: 1 addition & 1 deletion scm/github/authentication.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

"github.com/go-vela/server/random"
"github.com/go-vela/types/library"
"github.com/google/go-github/v59/github"
"github.com/google/go-github/v60/github"
)

// Authorize uses the given access token to authorize the user.
Expand Down
2 changes: 1 addition & 1 deletion scm/github/changeset.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/sirupsen/logrus"

"github.com/go-vela/types/library"
"github.com/google/go-github/v59/github"
"github.com/google/go-github/v60/github"
)

// Changeset captures the list of files changed for a commit.
Expand Down
2 changes: 1 addition & 1 deletion scm/github/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

"github.com/go-vela/types/library"
"github.com/go-vela/types/raw"
"github.com/google/go-github/v59/github"
"github.com/google/go-github/v60/github"
)

// GetDeployment gets a deployment from the GitHub repo.
Expand Down
2 changes: 1 addition & 1 deletion scm/github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"fmt"
"net/url"

"github.com/google/go-github/v59/github"
"github.com/google/go-github/v60/github"
"github.com/sirupsen/logrus"

"golang.org/x/oauth2"
Expand Down
2 changes: 1 addition & 1 deletion scm/github/github_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"reflect"
"testing"

"github.com/google/go-github/v59/github"
"github.com/google/go-github/v60/github"
"golang.org/x/oauth2"
)

Expand Down
2 changes: 1 addition & 1 deletion scm/github/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

"github.com/go-vela/types/constants"
"github.com/go-vela/types/library"
"github.com/google/go-github/v59/github"
"github.com/google/go-github/v60/github"
)

// ConfigBackoff is a wrapper for Config that will retry five times if the function
Expand Down Expand Up @@ -123,7 +123,7 @@
}

// cast url from hook configuration to string
hookURL := hook.Config["url"].(string)

Check failure on line 126 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] scm/github/repo.go#L126

invalid operation: cannot index hook.Config (variable of type *"github.com/google/go-github/v60/github".HookConfig)
Raw output
scm/github/repo.go:126:25: invalid operation: cannot index hook.Config (variable of type *"github.com/google/go-github/v60/github".HookConfig)

Check failure on line 126 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] scm/github/repo.go#L126

invalid operation: cannot index hook.Config (variable of type *"github.com/google/go-github/v60/github".HookConfig)
Raw output
scm/github/repo.go:126:25: invalid operation: cannot index hook.Config (variable of type *"github.com/google/go-github/v60/github".HookConfig)

Check failure on line 126 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] scm/github/repo.go#L126

invalid operation: cannot index hook.Config (variable of type *"github.com/google/go-github/v60/github".HookConfig)
Raw output
scm/github/repo.go:126:25: invalid operation: cannot index hook.Config (variable of type *"github.com/google/go-github/v60/github".HookConfig)

Check failure on line 126 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] scm/github/repo.go#L126

invalid operation: cannot index hook.Config (variable of type *"github.com/google/go-github/v60/github".HookConfig)
Raw output
scm/github/repo.go:126:25: invalid operation: cannot index hook.Config (variable of type *"github.com/google/go-github/v60/github".HookConfig)

Check failure on line 126 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / build

invalid operation: cannot index hook.Config (variable of type *"github.com/google/go-github/v60/github".HookConfig)

Check failure on line 126 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / build

invalid operation: cannot index hook.Config (variable of type *"github.com/google/go-github/v60/github".HookConfig)

Check failure on line 126 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / full-review

invalid operation: cannot index hook.Config (variable of type *"github.com/google/go-github/v60/github".HookConfig)

Check failure on line 126 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / full-review

invalid operation: cannot index hook.Config (variable of type *"github.com/google/go-github/v60/github".HookConfig)

Check failure on line 126 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / full-review

invalid operation: cannot index hook.Config (variable of type *"github.com/google/go-github/v60/github".HookConfig)

Check failure on line 126 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / diff-review

invalid operation: cannot index hook.Config (variable of type *"github.com/google/go-github/v60/github".HookConfig)

Check failure on line 126 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / diff-review

invalid operation: cannot index hook.Config (variable of type *"github.com/google/go-github/v60/github".HookConfig)

Check failure on line 126 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / diff-review

invalid operation: cannot index hook.Config (variable of type *"github.com/google/go-github/v60/github".HookConfig)

Check failure on line 126 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / validate

invalid operation: cannot index hook.Config (variable of type *"github.com/google/go-github/v60/github".HookConfig)

Check failure on line 126 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / validate

invalid operation: cannot index hook.Config (variable of type *"github.com/google/go-github/v60/github".HookConfig)

Check failure on line 126 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / test

invalid operation: cannot index hook.Config (variable of type *"github.com/google/go-github/v60/github".HookConfig)

Check failure on line 126 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / test

invalid operation: cannot index hook.Config (variable of type *"github.com/google/go-github/v60/github".HookConfig)

Check failure on line 126 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / Analyze (go)

invalid operation: cannot index hook.Config (variable of type *"github.com/google/go-github/v60/github".HookConfig)

// capture hook ID if the hook url matches
if hookURL == fmt.Sprintf("%s/webhook", c.config.ServerWebhookAddress) {
Expand Down Expand Up @@ -192,7 +192,7 @@
// create the hook object to make the API call
hook := &github.Hook{
Events: events,
Config: map[string]interface{}{

Check failure on line 195 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] scm/github/repo.go#L195

cannot use map[string]interface{}{…} (value of type map[string]interface{}) as *"github.com/google/go-github/v60/github".HookConfig value in struct literal
Raw output
scm/github/repo.go:195:11: cannot use map[string]interface{}{…} (value of type map[string]interface{}) as *"github.com/google/go-github/v60/github".HookConfig value in struct literal

Check failure on line 195 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] scm/github/repo.go#L195

cannot use map[string]interface{}{…} (value of type map[string]interface{}) as *"github.com/google/go-github/v60/github".HookConfig value in struct literal
Raw output
scm/github/repo.go:195:11: cannot use map[string]interface{}{…} (value of type map[string]interface{}) as *"github.com/google/go-github/v60/github".HookConfig value in struct literal

Check failure on line 195 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] scm/github/repo.go#L195

cannot use map[string]interface{}{…} (value of type map[string]interface{}) as *"github.com/google/go-github/v60/github".HookConfig value in struct literal
Raw output
scm/github/repo.go:195:11: cannot use map[string]interface{}{…} (value of type map[string]interface{}) as *"github.com/google/go-github/v60/github".HookConfig value in struct literal

Check failure on line 195 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] scm/github/repo.go#L195

cannot use map[string]interface{}{…} (value of type map[string]interface{}) as *"github.com/google/go-github/v60/github".HookConfig value in struct literal
Raw output
scm/github/repo.go:195:11: cannot use map[string]interface{}{…} (value of type map[string]interface{}) as *"github.com/google/go-github/v60/github".HookConfig value in struct literal

Check failure on line 195 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / build

cannot use map[string]interface{}{…} (value of type map[string]interface{}) as *"github.com/google/go-github/v60/github".HookConfig value in struct literal

Check failure on line 195 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / build

cannot use map[string]interface{}{…} (value of type map[string]interface{}) as *"github.com/google/go-github/v60/github".HookConfig value in struct literal

Check failure on line 195 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / full-review

cannot use map[string]interface{}{…} (value of type map[string]interface{}) as *"github.com/google/go-github/v60/github".HookConfig value in struct literal

Check failure on line 195 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / full-review

cannot use map[string]interface{}{…} (value of type map[string]interface{}) as *"github.com/google/go-github/v60/github".HookConfig value in struct literal

Check failure on line 195 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / diff-review

cannot use map[string]interface{}{…} (value of type map[string]interface{}) as *"github.com/google/go-github/v60/github".HookConfig value in struct literal

Check failure on line 195 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / diff-review

cannot use map[string]interface{}{…} (value of type map[string]interface{}) as *"github.com/google/go-github/v60/github".HookConfig value in struct literal

Check failure on line 195 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / validate

cannot use map[string]interface{}{…} (value of type map[string]interface{}) as *"github.com/google/go-github/v60/github".HookConfig value in struct literal

Check failure on line 195 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / validate

cannot use map[string]interface{}{…} (value of type map[string]interface{}) as *"github.com/google/go-github/v60/github".HookConfig value in struct literal

Check failure on line 195 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / test

cannot use map[string]interface{}{…} (value of type map[string]interface{}) as *"github.com/google/go-github/v60/github".HookConfig value in struct literal

Check failure on line 195 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / test

cannot use map[string]interface{}{…} (value of type map[string]interface{}) as *"github.com/google/go-github/v60/github".HookConfig value in struct literal

Check failure on line 195 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / Analyze (go)

cannot use map[string]interface{}{…} (value of type map[string]interface{}) as *"github.com/google/go-github/v60/github".HookConfig value in struct literal
"url": fmt.Sprintf("%s/webhook", c.config.ServerWebhookAddress),
"content_type": "form",
"secret": r.GetHash(),
Expand Down Expand Up @@ -266,7 +266,7 @@
// create the hook object to make the API call
hook := &github.Hook{
Events: events,
Config: map[string]interface{}{

Check failure on line 269 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] scm/github/repo.go#L269

cannot use map[string]interface{}{…} (value of type map[string]interface{}) as *"github.com/google/go-github/v60/github".HookConfig value in struct literal) (typecheck)
Raw output
scm/github/repo.go:269:11: cannot use map[string]interface{}{…} (value of type map[string]interface{}) as *"github.com/google/go-github/v60/github".HookConfig value in struct literal) (typecheck)
	"github.com/go-vela/server/scm/github"
	^

Check failure on line 269 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] scm/github/repo.go#L269

cannot use map[string]interface{}{…} (value of type map[string]interface{}) as *"github.com/google/go-github/v60/github".HookConfig value in struct literal) (typecheck)
Raw output
scm/github/repo.go:269:11: cannot use map[string]interface{}{…} (value of type map[string]interface{}) as *"github.com/google/go-github/v60/github".HookConfig value in struct literal) (typecheck)
	"github.com/go-vela/server/scm/github"
	^

Check failure on line 269 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] scm/github/repo.go#L269

cannot use map[string]interface{}{…} (value of type map[string]interface{}) as *"github.com/google/go-github/v60/github".HookConfig value in struct literal) (typecheck)
Raw output
scm/github/repo.go:269:11: cannot use map[string]interface{}{…} (value of type map[string]interface{}) as *"github.com/google/go-github/v60/github".HookConfig value in struct literal) (typecheck)
	"github.com/go-vela/server/scm/github"
	^

Check failure on line 269 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] scm/github/repo.go#L269

cannot use map[string]interface{}{…} (value of type map[string]interface{}) as *"github.com/google/go-github/v60/github".HookConfig value in struct literal (typecheck)
Raw output
scm/github/repo.go:269:11: cannot use map[string]interface{}{…} (value of type map[string]interface{}) as *"github.com/google/go-github/v60/github".HookConfig value in struct literal (typecheck)
// SPDX-License-Identifier: Apache-2.0

Check failure on line 269 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / build

cannot use map[string]interface{}{…} (value of type map[string]interface{}) as *"github.com/google/go-github/v60/github".HookConfig value in struct literal

Check failure on line 269 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / build

cannot use map[string]interface{}{…} (value of type map[string]interface{}) as *"github.com/google/go-github/v60/github".HookConfig value in struct literal

Check failure on line 269 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / full-review

cannot use map[string]interface{}{…} (value of type map[string]interface{}) as *"github.com/google/go-github/v60/github".HookConfig value in struct literal) (typecheck)

Check failure on line 269 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / full-review

cannot use map[string]interface{}{…} (value of type map[string]interface{}) as *"github.com/google/go-github/v60/github".HookConfig value in struct literal) (typecheck)

Check failure on line 269 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / diff-review

cannot use map[string]interface{}{…} (value of type map[string]interface{}) as *"github.com/google/go-github/v60/github".HookConfig value in struct literal) (typecheck)

Check failure on line 269 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / diff-review

cannot use map[string]interface{}{…} (value of type map[string]interface{}) as *"github.com/google/go-github/v60/github".HookConfig value in struct literal) (typecheck)

Check failure on line 269 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / validate

cannot use map[string]interface{}{…} (value of type map[string]interface{}) as *"github.com/google/go-github/v60/github".HookConfig value in struct literal

Check failure on line 269 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / validate

cannot use map[string]interface{}{…} (value of type map[string]interface{}) as *"github.com/google/go-github/v60/github".HookConfig value in struct literal

Check failure on line 269 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / test

cannot use map[string]interface{}{…} (value of type map[string]interface{}) as *"github.com/google/go-github/v60/github".HookConfig value in struct literal

Check failure on line 269 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / test

cannot use map[string]interface{}{…} (value of type map[string]interface{}) as *"github.com/google/go-github/v60/github".HookConfig value in struct literal

Check failure on line 269 in scm/github/repo.go

View workflow job for this annotation

GitHub Actions / Analyze (go)

cannot use map[string]interface{}{…} (value of type map[string]interface{}) as *"github.com/google/go-github/v60/github".HookConfig value in struct literal
"url": fmt.Sprintf("%s/webhook", c.config.ServerWebhookAddress),
"content_type": "form",
"secret": r.GetHash(),
Expand Down
2 changes: 1 addition & 1 deletion scm/github/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"github.com/go-vela/types"
"github.com/go-vela/types/constants"
"github.com/go-vela/types/library"
"github.com/google/go-github/v59/github"
"github.com/google/go-github/v60/github"
)

// ProcessWebhook parses the webhook from a repo.
Expand Down
Loading