Skip to content

Commit 2d222d5

Browse files
dudymasmilldr
andauthored
chore: update argocd-repo to use 6.0+ github provider (cloudposse/terraform-aws-components#1031)
Co-authored-by: Dan Miller <[email protected]>
1 parent ceb5a51 commit 2d222d5

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

src/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ $ terraform import -var "import_profile_name=eg-mgmt-gbl-corp-admin" -var-file="
8383
|------|---------|
8484
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0.0 |
8585
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.0 |
86-
| <a name="requirement_github"></a> [github](#requirement\_github) | >= 4.0 |
86+
| <a name="requirement_github"></a> [github](#requirement\_github) | >= 6.0 |
8787
| <a name="requirement_random"></a> [random](#requirement\_random) | >= 2.3 |
8888
| <a name="requirement_tls"></a> [tls](#requirement\_tls) | >= 3.0 |
8989

@@ -92,7 +92,7 @@ $ terraform import -var "import_profile_name=eg-mgmt-gbl-corp-admin" -var-file="
9292
| Name | Version |
9393
|------|---------|
9494
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 4.0 |
95-
| <a name="provider_github"></a> [github](#provider\_github) | >= 4.0 |
95+
| <a name="provider_github"></a> [github](#provider\_github) | >= 6.0 |
9696
| <a name="provider_tls"></a> [tls](#provider\_tls) | >= 3.0 |
9797

9898
## Modules

src/main.tf

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,11 @@ resource "github_branch_protection" "default" {
8585
}
8686
}
8787

88-
push_restrictions = var.push_restrictions_enabled ? [
89-
join("", data.github_user.automation_user[*].node_id),
90-
] : []
88+
restrict_pushes {
89+
push_allowances = var.push_restrictions_enabled ? [
90+
join("", data.github_user.automation_user[*].node_id),
91+
] : []
92+
}
9193
}
9294

9395
data "github_team" "default" {

src/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ terraform {
88
}
99
github = {
1010
source = "integrations/github"
11-
version = ">= 4.0"
11+
version = ">= 6.0"
1212
}
1313
tls = {
1414
source = "hashicorp/tls"

0 commit comments

Comments
 (0)