diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..1463264 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,20 @@ +version: 2 +updates: +- package-ecosystem: gomod + directory: "/" + schedule: + interval: daily + labels: + - "area/dependency" + - "release-note-none" + - "ok-to-test" + open-pull-requests-limit: 10 +- package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + labels: + - "area/dependency" + - "release-note-none" + - "ok-to-test" + open-pull-requests-limit: 10 diff --git a/github/github.go b/github/github.go index 639f131..682169e 100644 --- a/github/github.go +++ b/github/github.go @@ -445,7 +445,8 @@ func (g *githubClient) UploadReleaseAsset( } func (g *githubClient) DeleteReleaseAsset( - ctx context.Context, owner string, repo string, assetID int64) error { + ctx context.Context, owner string, repo string, assetID int64, +) error { _, err := g.Repositories.DeleteReleaseAsset(ctx, owner, repo, assetID) if err != nil { return fmt.Errorf("deleting asset %d: %w", assetID, err) @@ -823,7 +824,8 @@ func (g *GitHub) CreatePullRequest( // GetMilestone returns a milestone object from its string name func (g *GitHub) GetMilestone(owner, repo, title string) ( - ms *github.Milestone, exists bool, err error) { + ms *github.Milestone, exists bool, err error, +) { if title == "" { return nil, false, errors.New("unable to search milestone. Title is empty") } @@ -975,7 +977,8 @@ func (g *GitHub) DeleteReleaseAsset(owner, repo string, assetID int64) error { // ListReleaseAssets gets the assets uploaded to a GitHub release func (g *GitHub) ListReleaseAssets( - owner, repo string, releaseID int64) ([]*github.ReleaseAsset, error) { + owner, repo string, releaseID int64, +) ([]*github.ReleaseAsset, error) { // Get the assets from the client assets, err := g.Client().ListReleaseAssets( context.Background(), owner, repo, releaseID, diff --git a/github/record.go b/github/record.go index a451668..fa2e3bb 100644 --- a/github/record.go +++ b/github/record.go @@ -267,7 +267,8 @@ func (c *githubNotesRecordClient) UploadReleaseAsset( // DeleteReleaseAsset removes an asset from a page, note recorded func (c *githubNotesRecordClient) DeleteReleaseAsset( - ctx context.Context, owner, repo string, assetID int64) error { + ctx context.Context, owner, repo string, assetID int64, +) error { return nil } diff --git a/github/replay.go b/github/replay.go index ec30433..c97d426 100644 --- a/github/replay.go +++ b/github/replay.go @@ -289,7 +289,8 @@ func (c *githubNotesReplayClient) UploadReleaseAsset( // DeleteReleaseAsset removes an asset from a page, note recorded func (c *githubNotesReplayClient) DeleteReleaseAsset( - ctx context.Context, owner, repo string, assetID int64) error { + ctx context.Context, owner, repo string, assetID int64, +) error { return nil } diff --git a/magefile.go b/magefile.go index b1f3787..0de43fb 100644 --- a/magefile.go +++ b/magefile.go @@ -98,7 +98,7 @@ func Verify() error { } fmt.Println("Running golangci-lint...") - if err := mage.RunGolangCILint("v1.44.0", false); err != nil { + if err := mage.RunGolangCILint("v1.45.2", false); err != nil { return err } diff --git a/object/gcs.go b/object/gcs.go index dfc2a5c..d66ad68 100644 --- a/object/gcs.go +++ b/object/gcs.go @@ -188,7 +188,8 @@ func (g *GCS) bucketCopy(src, dst string) error { // gs:///[/fast][/] func (g *GCS) GetReleasePath( bucket, gcsRoot, version string, - fast bool) (string, error) { + fast bool, +) (string, error) { gcsPath, err := g.getPath( bucket, gcsRoot, @@ -209,7 +210,8 @@ func (g *GCS) GetReleasePath( // Expected destination format: // gs:/// func (g *GCS) GetMarkerPath( - bucket, gcsRoot string) (string, error) { + bucket, gcsRoot string, +) (string, error) { gcsPath, err := g.getPath( bucket, gcsRoot, @@ -232,7 +234,8 @@ func (g *GCS) GetMarkerPath( // TODO: Support "release" buildType func (g *GCS) getPath( bucket, gcsRoot, version, pathType string, - fast bool) (string, error) { + fast bool, +) (string, error) { if gcsRoot == "" { return "", errors.New("GCS root must be specified") } diff --git a/sign/impl.go b/sign/impl.go index 2df3bdb..d63504a 100644 --- a/sign/impl.go +++ b/sign/impl.go @@ -72,7 +72,8 @@ func (*defaultImpl) VerifyImageInternal(ctx context.Context, publickeyPath strin func (*defaultImpl) SignImageInternal(ro options.RootOptions, ko sign.KeyOpts, regOpts options.RegistryOptions, // nolint: gocritic annotations map[string]interface{}, imgs []string, certPath string, upload bool, outputSignature string, outputCertificate string, payloadPath string, force bool, - recursive bool, attachment string) error { + recursive bool, attachment string, +) error { return sign.SignCmd( &ro, ko, regOpts, annotations, imgs, certPath, "", upload, outputSignature, outputCertificate, payloadPath, force, recursive, attachment,