Skip to content

Commit

Permalink
Merge pull request #38358 from hashicorp/td-combine-dependabot-direct…
Browse files Browse the repository at this point in the history
…ories

dependabot: Consolidate Dependabot rules for Go dependencies
  • Loading branch information
gdavison authored Jul 15, 2024
2 parents dc27cff + 5d594a0 commit 97c26c9
Showing 1 changed file with 12 additions and 54 deletions.
66 changes: 12 additions & 54 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
version: 2
updates:
- directory: "/"
package-ecosystem: "github-actions"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"

- directory: "/"
package-ecosystem: "gomod"
- package-ecosystem: "gomod"
directories:
- "/"
- "/.ci/providerlint"
- "/.ci/tools"
- "/skaff"
- "/tools/awssdkpatch"
- "/tools/tfsdk2fw"
groups:
aws-sdk-go:
patterns:
Expand Down Expand Up @@ -34,7 +40,6 @@ updates:
- dependency-name: "github.com/hashicorp/terraform-plugin-log"
# go-hclog should only be updated via terraform-plugin-log
- dependency-name: "github.com/hashicorp/go-hclog"
- dependency-name: "golang.org/x/tools"
# grpc should only be updated via terraform-plugin-go/terraform-plugin-framework
- dependency-name: "google.golang.org/grpc"
# protobuf should only be updated via terraform-plugin-go/terraform-plugin-framework
Expand All @@ -43,54 +48,7 @@ updates:
interval: "daily"
open-pull-requests-limit: 30

- directory: "/.ci/providerlint"
package-ecosystem: "gomod"
ignore:
- dependency-name: "golang.org/x/tools"
- dependency-name: "google.golang.org/grpc"
- dependency-name: "google.golang.org/protobuf"
schedule:
interval: "daily"

- directory: "/.ci/tools"
package-ecosystem: "gomod"
ignore:
- dependency-name: "golang.org/x/tools"
- dependency-name: "google.golang.org/grpc"
- dependency-name: "google.golang.org/protobuf"
schedule:
interval: "daily"

- directory: "/skaff"
package-ecosystem: "gomod"
ignore:
- dependency-name: "golang.org/x/tools"
- dependency-name: "google.golang.org/grpc"
- dependency-name: "google.golang.org/protobuf"
schedule:
interval: "daily"

- directory: "/tools/awssdkpatch"
package-ecosystem: "gomod"
allow:
- dependency-type: direct
schedule:
interval: "daily"

- directory: "/tools/tfsdk2fw"
package-ecosystem: "gomod"
allow:
- dependency-type: direct
ignore:
# terraform-plugin-sdk/v2 should only be updated via terraform-provider-aws
- dependency-name: "github.com/hashicorp/terraform-plugin-sdk/v2"
- dependency-name: "golang.org/x/tools"
- dependency-name: "google.golang.org/grpc"
- dependency-name: "google.golang.org/protobuf"
schedule:
interval: "daily"

- directory: "/infrastructure/repository"
package-ecosystem: "terraform"
- package-ecosystem: "terraform"
directory: "/infrastructure/repository"
schedule:
interval: "daily"

0 comments on commit 97c26c9

Please sign in to comment.