revert(terraform): validate configuration if triggered by Dependabot #635
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The Terraform workflow currently throws an error if triggered by Dependabot and Dependabot secrets
AZURE_CLIENT_ID
,AZURE_SUBSCRIPTION_ID
and/orAZURE_TENANT_ID
are not configured, as these secrets are required by the Terraform workflow.There are three possible solutions to this issue:
Set these secrets as not required in the Terraform workflow. The downside of this solution is that it can cause confusion regarding the usage of the Terraform workflow, as these secrets are still required for normal use, they're just not marked as required to prevent this error when triggered by Dependabot.
Add these Dependabot secrets to the relevant repository and set the values to empty strings. This adds an, in my opinion, unnecessary and confusing prerequisite for the Terraform workflow.
Revert the commit that broke the Terraform workflow.
Going for solution 3 keeps the Terraform workflow as simple as possible, so that is the solution that I've gone for.
This reverts commit 9d552d9.