Skip to content

Commit fdb081c

Browse files
authored
fix: remove TF registry URL + bump test GHA (#57)
## what - Update TF Test GHA to the latest version that contains [critical fixes for PR checks](masterpointio/github-action-tf-test#12). - Add required_version rule for .tf files without overriding registryUrls. ## why - On the previous GHA versions, TF tests were run on the default branch, not the actual PR branch. - The previous config incorrectly pointed Terraform core required_version lookups to registry.terraform.io. Renovate fetches Terraform core versions via GitHub releases (hashicorp/terraform), not the registry API. This caused ERR_BODY_PARSE_FAILURE errors when the registry returned HTML instead of JSON ([example](https://developer.mend.io/github/masterpointio/terraform-module-template/-/job/019afb59-7878-7f12-b243-45777c8bb870)).
1 parent 381b2b7 commit fdb081c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/renovate.json5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
// Check Renovate logs: Go to https://developer.mend.io/ → sign in with GitHub → find your repo → check the job logs to see what Renovate is doing (or why it's skipping updates).
12
{
23
"extends": [
34
"config:best-practices",
4-
"github>aquaproj/aqua-renovate-config#2.7.5"
5+
"github>aquaproj/aqua-renovate-config#2.9.0"
56
],
67
"enabledManagers": [
78
"terraform",
@@ -57,7 +58,6 @@
5758
{
5859
"matchFileNames": ["**/*.tf"],
5960
"matchDepTypes": ["required_version"],
60-
"registryUrls": ["https://registry.terraform.io"],
6161
"groupName": "tf"
6262
}
6363
]

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
matrix:
2222
tf: [tofu, terraform]
2323
steps:
24-
- uses: masterpointio/github-action-tf-test@c3b619f3bca9e4f482b9e0fb3166ab3f02d9d54c # v1.0.0
24+
- uses: masterpointio/github-action-tf-test@c1e41998f67925ac3f34e0bbcfcaa4a44d1f0cd9 # v1.0.1
2525
with:
2626
tf_type: ${{ matrix.tf }}
2727
aws_role_arn: ${{ vars.TF_TEST_AWS_ROLE_ARN }}

0 commit comments

Comments
 (0)