Skip to content

Commit 665a5a2

Browse files
rename github_repositories to repositories
1 parent 5da334c commit 665a5a2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,10 @@ No modules.
111111
|------|-------------|------|---------|:--------:|
112112
| <a name="input_create_oidc_provider"></a> [create\_oidc\_provider](#input\_create\_oidc\_provider) | Whether or not to create the associated oidc provider. If false, variable 'oidc\_provider\_arn' is required | `bool` | `true` | no |
113113
| <a name="input_create_oidc_role"></a> [create\_oidc\_role](#input\_create\_oidc\_role) | Whether or not to create the OIDC attached role | `bool` | `true` | no |
114-
| <a name="input_github_repositories"></a> [github\_repositories](#input\_github\_repositories) | List of GitHub organization/repository names authorized to assume the role. | `list(string)` | `[]` | no |
115114
| <a name="input_github_thumbprint"></a> [github\_thumbprint](#input\_github\_thumbprint) | GitHub OpenID TLS certificate thumbprint. | `string` | `"6938fd4d98bab03faadb97b34396831e3780aea1"` | no |
116115
| <a name="input_max_session_duration"></a> [max\_session\_duration](#input\_max\_session\_duration) | Maximum session duration in seconds. | `number` | `3600` | no |
117116
| <a name="input_oidc_role_attach_policies"></a> [oidc\_role\_attach\_policies](#input\_oidc\_role\_attach\_policies) | Attach policies to OIDC role. | `list(string)` | `[]` | no |
117+
| <a name="input_repositories"></a> [repositories](#input\_repositories) | List of GitHub organization/repository names authorized to assume the role. | `list(string)` | `[]` | no |
118118
| <a name="input_role_description"></a> [role\_description](#input\_role\_description) | (Optional) Description of the role. | `string` | `"Role assumed by the GitHub OIDC provider."` | no |
119119
| <a name="input_role_name"></a> [role\_name](#input\_role\_name) | (Optional, Forces new resource) Friendly name of the role. | `string` | `"github-oidc-provider-aws"` | no |
120120
| <a name="input_tags"></a> [tags](#input\_tags) | A mapping of tags to assign to all resources | `map(string)` | `{}` | no |

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ data "aws_iam_policy_document" "this" {
4747
condition {
4848
test = "StringLike"
4949
values = [
50-
for repo in var.github_repositories :
50+
for repo in var.repositories :
5151
"repo:%{if length(regexall(":+", repo)) > 0}${repo}%{else}${repo}:*%{endif}"
5252
]
5353
variable = "token.actions.githubusercontent.com:sub"

variables.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ variable "github_thumbprint" {
2020
default = "6938fd4d98bab03faadb97b34396831e3780aea1"
2121
}
2222

23-
variable "github_repositories" {
23+
variable "repositories" {
2424
description = "List of GitHub organization/repository names authorized to assume the role."
2525
type = list(string)
2626
default = []
@@ -29,9 +29,9 @@ variable "github_repositories" {
2929
# Ensures each element of github_repositories list matches the
3030
# organization/repository format used by GitHub.
3131
condition = length([
32-
for repo in var.github_repositories : 1
32+
for repo in var.repositories : 1
3333
if length(regexall("^[A-Za-z0-9_.-]+?/([A-Za-z0-9_.:/-]+|\\*)$", repo)) > 0
34-
]) == length(var.github_repositories)
34+
]) == length(var.repositories)
3535
error_message = "Repositories must be specified in the organization/repository format."
3636
}
3737
}

0 commit comments

Comments
 (0)