Skip to content

Commit

Permalink
chore(CI): update renovate config (#2122)
Browse files Browse the repository at this point in the history
  • Loading branch information
apeabody authored Feb 5, 2024
1 parent 7d32413 commit 2c4d6e8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
3 changes: 2 additions & 1 deletion infra/terraform/test-org/github/protection.tf
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,10 @@ module "branch_protection_gcp" {
providers = { github = github.gcp }
}

// terraform-example-foundation renovate is a special case
module "renovate_json_tgm" {
source = "../../modules/repo_file"
repo_list = module.repos_tgm.repos
repo_list = { for k, v in module.repos_tgm.repos : k => v if k != "terraform-example-foundation" }
filename = ".github/renovate.json"
content = file("${path.module}/resources/renovate-repo-config.json")
providers = { github = github }
Expand Down
14 changes: 8 additions & 6 deletions infra/terraform/test-org/github/resources/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
"labels": ["dependencies"],
"vulnerabilityAlerts": {
"labels": ["type:security"],
"minimumReleaseAge": null
"minimumReleaseAge": "0 days"
},
"constraints": {"go": "1.21"},
"packageRules": [
{
"matchFileNames": ["examples/**", "test/**", ".github/**", "infra/**"],
"matchFileNames": ["examples/**", "test/**", ".github/**", "infra/**", "Makefile"],
"commitMessagePrefix": "chore(deps):"
},
{
"matchFileNames": ["*", "modules/**"],
"matchFileNames": ["*", "modules/**", "!Makefile"],
"commitMessagePrefix": "fix(deps):"
},
{
Expand All @@ -29,26 +29,28 @@
"commitMessagePrefix": "fix(deps)!:"
},
{
"matchManagers": ["terraform"],
"matchDepTypes": ["module"],
"groupName": "terraform modules",
"matchUpdateTypes": ["minor", "patch"]
},
{
"matchDepTypes": ["require"],
"matchManagers": ["gomod"],
"postUpdateOptions": ["gomodTidy"]
},
{
"matchManagers": ["gomod"],
"matchDatasources": ["golang-version"],
"rangeStrategy": "replace",
"allowedVersions": "1.21",
"postUpdateOptions": ["gomodTidy"]
},
{
"matchManagers": ["regex", "gomod"],
"groupName": "go modules and/or dev-tools",
"additionalBranchPrefix": "{{parentDir}}-"
"groupName": "go modules and/or dev-tools"
},
{
"matchManagers": ["terraform"],
"matchDepNames": ["google", "google-beta"],
"groupName": "Terraform Google Provider",
"rangeStrategy": "widen",
Expand Down

0 comments on commit 2c4d6e8

Please sign in to comment.