diff --git a/README.md b/README.md index 65a9e9e..6363b30 100644 --- a/README.md +++ b/README.md @@ -169,7 +169,7 @@ No modules. | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| | [github\_actions\_oidc\_url](#input\_github\_actions\_oidc\_url) | The URL to use for the OIDC handshake | `string` | `"https://token.actions.githubusercontent.com"` | no | -| [github\_repositories](#input\_github\_repositories) | A list of GitHub repositories the OIDC provider should authenticate against. The format is / | `set(string)` | `[]` | no | +| [github\_repositories](#input\_github\_repositories) | A list of GitHub repositories the OIDC provider should authenticate against. The format is org/user/repository-name | `set(string)` | `[]` | no | | [role\_names](#input\_role\_names) | The set of names for roles that GitHub Actions will be able to assume | `set(string)` | `[]` | no | | [role\_path](#input\_role\_path) | The path the created roles are going to live under | `string` | `"/"` | no | | [tags](#input\_tags) | A key > value map of tags to associate with the resources that are being created | `map(string)` | `{}` | no | diff --git a/variables.tf b/variables.tf index b8c1194..1fb3ad6 100644 --- a/variables.tf +++ b/variables.tf @@ -11,12 +11,12 @@ variable "github_actions_oidc_url" { variable "github_repositories" { type = set(string) - description = "A list of GitHub repositories the OIDC provider should authenticate against. The format is /" + description = "A list of GitHub repositories the OIDC provider should authenticate against. The format is org/user/repository-name" default = [] validation { condition = alltrue([for repo in var.github_repositories : substr(repo, 0, 4) != "http"]) - error_message = "The repositories must not have a http(s):// prefix. The format is /." + error_message = "The repositories must not have a http(s):// prefix. The format is org/user/repository-name." } }