Merge pull request #1080 from cloudskiff/fix_gh_acc_tests

Fix github acceptance test
main
Elie 2021-09-28 14:09:28 +02:00 committed by GitHub
commit e6e13a041e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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
} }