Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

terraform_module_pinned_source: support additional default_branches #1126

Merged
merged 5 commits into from
May 28, 2021

Conversation

bendrucker
Copy link
Member

@bendrucker bendrucker commented May 28, 2021

Expands the list of default branches and allows users to configure additional branch names via config. Adapted from #1123.

rule "terraform_module_pinned_source" {
  enabled = true
  default_branches = ["dev"]
}
module "unpinned" {
  source = "git://hashicorp.com/consul.git?ref=dev"
}
Warning: Module source "git://hashicorp.com/consul.git?ref=dev" uses a default branch as ref (dev) (terraform_module_pinned_source)

Closes #1123

@bendrucker bendrucker merged commit 0c6a3ed into master May 28, 2021
@bendrucker bendrucker deleted the pinned-source-default-branches branch May 28, 2021 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant