File tree Expand file tree Collapse file tree 4 files changed +9
-3
lines changed
Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ No modules.
5050| <a name =" input_has_projects " ></a > [ has\_ projects] ( #input\_ has\_ projects ) | n/a | ` bool ` | ` false ` | no |
5151| <a name =" input_has_wiki " ></a > [ has\_ wiki] ( #input\_ has\_ wiki ) | This enables a wiki on your github repo. Why not. | ` bool ` | n/a | yes |
5252| <a name =" input_name " ></a > [ name] ( #input\_ name ) | We are following tech-resource-topic after hashicorp. | ` string ` | n/a | yes |
53+ | <a name =" input_pattern " ></a > [ pattern] ( #input\_ pattern ) | n/a | ` string ` | n/a | yes |
5354| <a name =" input_private " ></a > [ private] ( #input\_ private ) | Visibility to be one of [ public private internal] | ` string ` | ` "public" ` | no |
5455| <a name =" input_topics " ></a > [ topics] ( #input\_ topics ) | n/a | ` list(any) ` | n/a | yes |
5556
Original file line number Diff line number Diff line change 11module "repository" {
22 # checkov:skip=CKV_GIT_1
3+ # checkov:skip=CKV_GIT_6:
4+ # checkov:skip=CKV_GIT_5:
35 source = " ../../"
46 name = var. name
57 description = var. description
68 has_wiki = var. has_wiki
79 private = var. private
10+ pattern = " master"
811 topics = var. topics
912}
Original file line number Diff line number Diff line change 11resource "github_branch_protection" "repositories" {
2- # checkov:skip=CKV_GIT_6:
3- # checkov:skip=CKV_GIT_5:
42 repository_id = github_repository. repositories . id
53 enforce_admins = var. enforce_admins
6- pattern = " master "
4+ pattern = var . pattern
75
86 required_pull_request_reviews {
97 dismiss_stale_reviews = true
Original file line number Diff line number Diff line change @@ -42,3 +42,7 @@ variable "has_projects" {
4242 type = bool
4343 default = false
4444}
45+
46+ variable "pattern" {
47+ type = string
48+ }
You can’t perform that action at this time.
0 commit comments