Skip to content

Commit 0c64dd7

Browse files
refreshed
1 parent 02ed867 commit 0c64dd7

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
module "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
}

github_branch_protection.repositories.tf

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
resource "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

variables.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,7 @@ variable "has_projects" {
4242
type = bool
4343
default = false
4444
}
45+
46+
variable "pattern" {
47+
type = string
48+
}

0 commit comments

Comments
 (0)