Update go-github

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
Gabriel Adrian Samfira 2025-04-28 13:19:27 +00:00
parent 22302fdd7a
commit fafe98e62f
180 changed files with 42 additions and 60445 deletions

View file

@ -27,7 +27,7 @@ import (
"sync"
"time"
"github.com/google/go-github/v57/github"
"github.com/google/go-github/v71/github"
"github.com/google/uuid"
"github.com/pkg/errors"
"golang.org/x/sync/errgroup"
@ -1930,12 +1930,12 @@ func (r *basePoolManager) InstallWebhook(ctx context.Context, param params.Insta
insecureSSL = "1"
}
req := &github.Hook{
Active: github.Bool(true),
Config: map[string]interface{}{
"url": r.controllerInfo.ControllerWebhookURL,
"content_type": "json",
"insecure_ssl": insecureSSL,
"secret": r.WebhookSecret(),
Active: github.Ptr(true),
Config: &github.HookConfig{
ContentType: github.Ptr("json"),
InsecureSSL: github.Ptr(insecureSSL),
URL: github.Ptr(r.controllerInfo.ControllerWebhookURL),
Secret: github.Ptr(r.WebhookSecret()),
},
Events: []string{
"workflow_job",
@ -1997,8 +1997,10 @@ func (r *basePoolManager) FetchTools() ([]commonParams.RunnerApplicationDownload
}
func (r *basePoolManager) GetGithubRunners() ([]*github.Runner, error) {
opts := github.ListOptions{
PerPage: 100,
opts := github.ListRunnersOptions{
ListOptions: github.ListOptions{
PerPage: 100,
},
}
var allRunners []*github.Runner