Skip to content

Commit

Permalink
Add dependabot config file
Browse files Browse the repository at this point in the history
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
  • Loading branch information
saschagrunert committed May 2, 2022
1 parent 0b258c3 commit 69bd26f
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 10 deletions.
20 changes: 20 additions & 0 deletions .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
9 changes: 6 additions & 3 deletions github/github.go
Expand Up @@ -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)
Expand Down Expand Up @@ -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")
}
Expand Down Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion github/record.go
Expand Up @@ -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
}

Expand Down
3 changes: 2 additions & 1 deletion github/replay.go
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion magefile.go
Expand Up @@ -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
}

Expand Down
9 changes: 6 additions & 3 deletions object/gcs.go
Expand Up @@ -188,7 +188,8 @@ func (g *GCS) bucketCopy(src, dst string) error {
// gs://<bucket>/<gcsRoot>[/fast][/<version>]
func (g *GCS) GetReleasePath(
bucket, gcsRoot, version string,
fast bool) (string, error) {
fast bool,
) (string, error) {
gcsPath, err := g.getPath(
bucket,
gcsRoot,
Expand All @@ -209,7 +210,8 @@ func (g *GCS) GetReleasePath(
// Expected destination format:
// gs://<bucket>/<gcsRoot>
func (g *GCS) GetMarkerPath(
bucket, gcsRoot string) (string, error) {
bucket, gcsRoot string,
) (string, error) {
gcsPath, err := g.getPath(
bucket,
gcsRoot,
Expand All @@ -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")
}
Expand Down
3 changes: 2 additions & 1 deletion sign/impl.go
Expand Up @@ -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,
Expand Down

0 comments on commit 69bd26f

Please sign in to comment.