diff --git a/README.md b/README.md index ca695d2..0a5d81b 100644 --- a/README.md +++ b/README.md @@ -283,7 +283,9 @@ No modules. | [github_team_repository.admin](https://registry.terraform.io/providers/integrations/github/latest/docs/resources/team_repository) | resource | | [tls_private_key.deploy_key](https://registry.terraform.io/providers/hashicorp/tls/latest/docs/resources/private_key) | resource | | [github_organization_teams.root_teams](https://registry.terraform.io/providers/integrations/github/latest/docs/data-sources/organization_teams) | data source | +| [github_ref.ref](https://registry.terraform.io/providers/integrations/github/latest/docs/data-sources/ref) | data source | | [github_repository.existing](https://registry.terraform.io/providers/integrations/github/latest/docs/data-sources/repository) | data source | +| [github_repository.template_repo](https://registry.terraform.io/providers/integrations/github/latest/docs/data-sources/repository) | data source | | [github_team.admin_teams](https://registry.terraform.io/providers/integrations/github/latest/docs/data-sources/team) | data source | | [github_team.environment_teams](https://registry.terraform.io/providers/integrations/github/latest/docs/data-sources/team) | data source | | [github_user.collaborators](https://registry.terraform.io/providers/integrations/github/latest/docs/data-sources/user) | data source | @@ -304,7 +306,7 @@ No modules. | [commit\_email](#input\_commit\_email) | The email to use for file commits | `string` | `"terraform@roknsound.com"` | no | | [create\_codeowners](#input\_create\_codeowners) | Create CODEOWNERS file | `bool` | `true` | no | | [create\_repo](#input\_create\_repo) | Whether to create a new repository or manage an existing one | `bool` | `true` | no | -| [deploy\_keys](#input\_deploy\_keys) | List of SSH deploy keys to add to the repository |
list(object({
title = string
key = optional(string, "")
# The key is optional because it can be generated
# by the module itself if create is set to true
# and the key is not provided
read_only = optional(bool, true)
create = optional(bool, false)
}))
| `[]` | no | +| [deploy\_keys](#input\_deploy\_keys) | List of SSH deploy keys to add to the repository |
list(object({
title = string
key = optional(string, "")
# The key is optional because it can be generated
# by the module itself if create is set to true
# and the key is not provided
read_only = optional(bool, true)
create = optional(bool, false)
}))
| `[]` | no | | [enforce\_prs](#input\_enforce\_prs) | Enforce pull request reviews | `bool` | `true` | no | | [environments](#input\_environments) | List of GitHub environments to create for the repository |
list(object({
name = string
reviewers = optional(object({
teams = optional(list(string), [])
users = optional(list(string), [])
}), {})
deployment_branch_policy = optional(object({
protected_branches = optional(bool, true)
custom_branch_policies = optional(bool, false)
}), {})
secrets = optional(list(object({
name = string
value = string
})), [])
vars = optional(list(object({
name = string
value = string
})), [])
}))
| `[]` | no | | [extra\_files](#input\_extra\_files) | Additional files to create in the repository |
list(object({
path = string
content = string
}))
| `[]` | no | @@ -356,7 +358,6 @@ No modules. | [template\_repo\_org](#input\_template\_repo\_org) | Template repository organization | `string` | `null` | no | | [vars](#input\_vars) | GitHub Actions variables |
list(object({
name = string
value = string
}))
| `[]` | no | | [vulnerability\_alerts](#input\_vulnerability\_alerts) | Enable Dependabot alerts | `bool` | `false` | no | -| [deploy\_keys](#input\_deploy\_keys) | List of SSH deploy keys to add to the repository |
list(object({
title = string
key = string
read_only = optional(bool, true)
}))
| `[]` | no | ## Outputs diff --git a/branch_protection.tf b/branch_protection.tf index a60544c..c8e4ef4 100644 --- a/branch_protection.tf +++ b/branch_protection.tf @@ -53,7 +53,7 @@ resource "github_branch_protection" "protection" { github_repository.repo, github_branch.branch, github_branch_default.default_main_branch, - github_repository_files.extra_files, + github_repository_file.extra_files, github_repository_file.codeowners, github_repository_file.managed_extra_files ]