diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 184da5b8f136..000000000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,18 +0,0 @@ -version: 2 -updates: - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "daily" - labels: - - "area/ci" - - "status/2-code-review" - cooldown: - default-days: 7 - groups: - codeql-actions: - patterns: - - "github/codeql-action/*" - docker-actions: - patterns: - - "docker/*" diff --git a/.github/renovate.json5 b/.github/renovate.json5 new file mode 100644 index 000000000000..41f3d1eca0a1 --- /dev/null +++ b/.github/renovate.json5 @@ -0,0 +1,59 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:recommended", + // https://docs.renovatebot.com/modules/manager/github-actions/ + // https://docs.renovatebot.com/presets-helpers/ + "helpers:pinGitHubActionDigestsToSemver", + ":gitSignOff" + ], + "gomod": { + "managerFilePatterns": ["/(^|/)vendor\\.mod$/"] + }, + "postUpdateOptions": ["gomodTidy"], + "minimumReleaseAge": "3 days", + "internalChecksFilter": "strict", + "packageRules": [ + { + "matchManagers": ["gomod"], + "matchFileNames": ["vendor.mod"], + "semanticCommits": "disabled", + "commitMessagePrefix": "vendor:" + }, + { + "matchManagers": ["gomod"], + "matchFileNames": ["cmd/docker-trust/go.mod"], + // The trust module does not vendor dependencies; vendor/ belongs to the root module. + "postUpdateOptions": ["gomodSkipVendor"], + "semanticCommits": "disabled", + "commitMessagePrefix": "cmd/docker-trust:" + }, + { + "matchManagers": ["gomod"], + "matchFileNames": ["vendor.mod"], + "groupName": "golang.org/x packages", + "groupSlug": "golang-x", + "matchDepNames": ["/^golang\\.org\\/x\\//"] + }, + { + "matchManagers": ["github-actions"], + "minimumReleaseAge": "7 days", + "addLabels": ["area/ci", "status/2-code-review"] + }, + { + "matchManagers": ["github-actions"], + "groupName": "docker GitHub Actions", + "groupSlug": "docker-actions", + "matchDepNames": ["/^docker\\//"] + }, + { + // Keep all the google.golang.org/genproto modules at the same version. + "matchManagers": ["gomod"], + "matchFileNames": ["vendor.mod"], + "groupName": "google.golang.org/genproto packages", + "groupSlug": "google-genproto", + "matchDepNames": ["/^google\\.golang\\.org\\/genproto(\\/|$)/"], + "schedule": ["every month"] + } + ] +}