diff --git a/go.mod b/go.mod index 3806eba..71f8050 100644 --- a/go.mod +++ b/go.mod @@ -11,7 +11,7 @@ require ( github.com/aws/aws-sdk-go-v2/credentials v1.17.0 github.com/aws/aws-sdk-go-v2/service/s3 v1.50.0 github.com/go-chi/chi/v5 v5.0.12 - github.com/google/go-github/v55 v55.0.0 + github.com/google/go-github/v59 v59.0.0 github.com/hashicorp/go-retryablehttp v0.7.5 github.com/kelseyhightower/envconfig v1.4.0 github.com/migueleliasweb/go-github-mock v0.0.20 @@ -55,6 +55,7 @@ require ( github.com/go-logr/stdr v1.2.2 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/protobuf v1.5.3 // indirect + github.com/google/go-github/v55 v55.0.0 // indirect github.com/google/go-querystring v1.1.0 // indirect github.com/google/s2a-go v0.1.7 // indirect github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect diff --git a/go.sum b/go.sum index 31c1706..933c47a 100644 --- a/go.sum +++ b/go.sum @@ -128,6 +128,8 @@ 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/v55 v55.0.0 h1:4pp/1tNMB9X/LuAhs5i0KQAE40NmiR/y6prLNb9x9cg= github.com/google/go-github/v55 v55.0.0/go.mod h1:JLahOTA1DnXzhxEymmFF5PP2tSS9JVNj68mSZNDwskA= +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-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8= github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU= github.com/google/s2a-go v0.1.7 h1:60BLSyTrOV4/haCDW4zb1guZItoSq8foHCXrAnjBo/o= diff --git a/internal/batch/download_test.go b/internal/batch/download_test.go index fd9dbaa..9dcc6d9 100644 --- a/internal/batch/download_test.go +++ b/internal/batch/download_test.go @@ -25,7 +25,7 @@ var ( func getTestServer(t *testing.T, failingRequests int) *httptest.Server { cnt := 0 - return httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + return httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) { cnt++ if cnt <= failingRequests { w.WriteHeader(http.StatusInternalServerError) diff --git a/internal/config/server.go b/internal/config/server.go index 3f9b829..3f205fa 100644 --- a/internal/config/server.go +++ b/internal/config/server.go @@ -9,7 +9,7 @@ import ( awsConfig "github.com/aws/aws-sdk-go-v2/config" "github.com/aws/aws-sdk-go-v2/credentials" "github.com/aws/aws-sdk-go-v2/service/s3" - "github.com/google/go-github/v55/github" + "github.com/google/go-github/v59/github" "github.com/kelseyhightower/envconfig" "golang.org/x/oauth2" ) diff --git a/internal/plugin/github.go b/internal/plugin/github.go index 5a9bdc1..af13acb 100644 --- a/internal/plugin/github.go +++ b/internal/plugin/github.go @@ -12,7 +12,7 @@ import ( "github.com/Masterminds/semver/v3" "github.com/go-semantic-release/plugin-registry/pkg/registry" - "github.com/google/go-github/v55/github" + "github.com/google/go-github/v59/github" "github.com/hashicorp/go-retryablehttp" ) diff --git a/internal/plugin/github_test.go b/internal/plugin/github_test.go index 5f559b4..b11cdbf 100644 --- a/internal/plugin/github_test.go +++ b/internal/plugin/github_test.go @@ -7,7 +7,7 @@ import ( "net/http/httptest" "testing" - "github.com/google/go-github/v55/github" + "github.com/google/go-github/v59/github" "github.com/migueleliasweb/go-github-mock/src/mock" "github.com/stretchr/testify/require" ) @@ -69,7 +69,7 @@ cacce75a plugin_v1.0.0_linux_arm64 func getCheckSumServer(failingRequests int) *httptest.Server { cnt := 0 - return httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + return httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) { cnt++ if cnt <= failingRequests { w.WriteHeader(http.StatusInternalServerError) diff --git a/internal/plugin/plugin.go b/internal/plugin/plugin.go index ec4f9cc..bfcde8d 100644 --- a/internal/plugin/plugin.go +++ b/internal/plugin/plugin.go @@ -9,7 +9,7 @@ import ( "cloud.google.com/go/firestore" "github.com/Masterminds/semver/v3" "github.com/go-semantic-release/plugin-registry/pkg/registry" - "github.com/google/go-github/v55/github" + "github.com/google/go-github/v59/github" ) type Plugin struct { diff --git a/internal/server/handler_download.go b/internal/server/handler_download.go index 15f0198..ebcb547 100644 --- a/internal/server/handler_download.go +++ b/internal/server/handler_download.go @@ -9,7 +9,7 @@ import ( "github.com/go-chi/chi/v5" "github.com/go-semantic-release/plugin-registry/internal/metrics" - "github.com/google/go-github/v55/github" + "github.com/google/go-github/v59/github" "go.opencensus.io/stats" "go.opencensus.io/tag" ) diff --git a/internal/server/handlers_test.go b/internal/server/handlers_test.go index 51a25e6..3e45889 100644 --- a/internal/server/handlers_test.go +++ b/internal/server/handlers_test.go @@ -23,7 +23,7 @@ import ( "github.com/aws/aws-sdk-go-v2/service/s3" "github.com/go-semantic-release/plugin-registry/internal/config" "github.com/go-semantic-release/plugin-registry/pkg/registry" - "github.com/google/go-github/v55/github" + "github.com/google/go-github/v59/github" "github.com/migueleliasweb/go-github-mock/src/mock" "github.com/sirupsen/logrus" "github.com/stretchr/testify/require" @@ -119,7 +119,7 @@ func createS3Client(t *testing.T) (*s3.Client, func()) { w.WriteHeader(http.StatusOK) })) s3Cfg, err := awsConfig.LoadDefaultConfig(context.TODO(), - awsConfig.WithEndpointResolverWithOptions(aws.EndpointResolverWithOptionsFunc(func(service, region string, options ...interface{}) (aws.Endpoint, error) { + awsConfig.WithEndpointResolverWithOptions(aws.EndpointResolverWithOptionsFunc(func(_, _ string, _ ...interface{}) (aws.Endpoint, error) { return aws.Endpoint{ URL: ts.URL, HostnameImmutable: true, @@ -220,7 +220,7 @@ func createPluginDoc(fsClient *firestore.Client, dlHost, fullName, latestRelease } func bootstrapDatabase(t *testing.T, fsClient *firestore.Client) func() { - ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) { w.WriteHeader(http.StatusOK) _, _ = io.WriteString(w, "test-file") })) diff --git a/internal/server/server.go b/internal/server/server.go index 2188917..724f811 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -10,7 +10,7 @@ import ( "github.com/go-chi/chi/v5" "github.com/go-chi/chi/v5/middleware" "github.com/go-semantic-release/plugin-registry/internal/config" - "github.com/google/go-github/v55/github" + "github.com/google/go-github/v59/github" "github.com/patrickmn/go-cache" "github.com/sirupsen/logrus" "golang.org/x/sync/semaphore"