commit
e6e13a041e
|
@ -25,7 +25,7 @@ resource "github_branch" "repo_toto" {
|
||||||
resource "github_branch_protection" "main_repo" {
|
resource "github_branch_protection" "main_repo" {
|
||||||
count = 3
|
count = 3
|
||||||
pattern = "main"
|
pattern = "main"
|
||||||
repository_id = github_repository.repo[count.index].node_id
|
repository_id = github_repository.repo[count.index].name
|
||||||
enforce_admins = true
|
enforce_admins = true
|
||||||
required_status_checks {
|
required_status_checks {
|
||||||
strict = false
|
strict = false
|
||||||
|
@ -50,7 +50,7 @@ resource "github_branch_protection" "main_repo" {
|
||||||
|
|
||||||
resource "github_branch_protection" "toto_repo" {
|
resource "github_branch_protection" "toto_repo" {
|
||||||
count = 3
|
count = 3
|
||||||
repository_id = github_repository.repo[count.index].node_id
|
repository_id = github_repository.repo[count.index].name
|
||||||
pattern = github_branch.repo_toto[count.index].branch
|
pattern = github_branch.repo_toto[count.index].branch
|
||||||
enforce_admins = true
|
enforce_admins = true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue