Skip to content

Commit 224acea

Browse files
authored
fix(renovate): valid regex (#30)
## what - For `fileMatch`, we should use regex pattern, not globbing. - I'm confused why trunk check didn't fail for previous PR, because this obviously is an issue: ``` ❯ trunk check .github/renovate.json5 --show-existing Checking 100% [==================================================>] 16/16 1.4s ISSUES .github/renovate.json5:0:0 0:0 high Invalid regExp for terraform.fileMatch: renovate/Configuration-Error `**/*.tofu` Checked 1 file 1 existing issue ✔ No new issues ``` ## why - Confusing, but this is how it works in renovate. ## references - #19 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Updated the way Terraform files are identified for automated dependency updates, improving file matching accuracy. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 6ce01f2 commit 224acea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/renovate.json5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
"**/context.tf" // Mixin file https://github.com/cloudposse/terraform-null-label/blob/main/exports/context.tf
2020
],
2121
"fileMatch": [
22-
"**/*.tf",
23-
"**/*.tofu"
22+
"\\.tf$",
23+
"\\.tofu$"
2424
]
2525
},
2626
"packageRules": [

0 commit comments

Comments
 (0)