Skip to content

Commit

Permalink
chore: update argocd-repo to use 6.0+ github provider (#1031)
Browse files Browse the repository at this point in the history
Co-authored-by: Dan Miller <[email protected]>
  • Loading branch information
dudymas and milldr authored Aug 8, 2024
1 parent fec5106 commit 020dc81
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions modules/argocd-repo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ $ terraform import -var "import_profile_name=eg-mgmt-gbl-corp-admin" -var-file="
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0.0 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.0 |
| <a name="requirement_github"></a> [github](#requirement\_github) | >= 4.0 |
| <a name="requirement_github"></a> [github](#requirement\_github) | >= 6.0 |
| <a name="requirement_random"></a> [random](#requirement\_random) | >= 2.3 |
| <a name="requirement_tls"></a> [tls](#requirement\_tls) | >= 3.0 |

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

## Modules
Expand Down
8 changes: 5 additions & 3 deletions modules/argocd-repo/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,11 @@ resource "github_branch_protection" "default" {
}
}

push_restrictions = var.push_restrictions_enabled ? [
join("", data.github_user.automation_user[*].node_id),
] : []
restrict_pushes {
push_allowances = var.push_restrictions_enabled ? [
join("", data.github_user.automation_user[*].node_id),
] : []
}
}

data "github_team" "default" {
Expand Down
2 changes: 1 addition & 1 deletion modules/argocd-repo/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ terraform {
}
github = {
source = "integrations/github"
version = ">= 4.0"
version = ">= 6.0"
}
tls = {
source = "hashicorp/tls"
Expand Down

0 comments on commit 020dc81

Please sign in to comment.