Skip to content
This repository was archived by the owner on Dec 21, 2024. It is now read-only.

Commit 7b09412

Browse files
Can't create deploy keys (#19)
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
1 parent 937a357 commit 7b09412

File tree

6 files changed

+13
-5
lines changed

6 files changed

+13
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Terraform module to create GitHub repository and relevant resources.
1818

1919
| Name | Version |
2020
|------|---------|
21-
| <a name="provider_github"></a> [github](#provider\_github) | 6.2.1 |
21+
| <a name="provider_github"></a> [github](#provider\_github) | 6.2.3 |
2222

2323
## Modules
2424

examples/complete/main.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,14 @@ EOT
182182
}
183183
]
184184

185+
deploy_keys = [
186+
{
187+
title = "Deploy Key"
188+
key = "some-ssh-key"
189+
read_only = true
190+
}
191+
]
192+
185193
dependabot_security_updates_enabled = true
186194

187195
issue_labels = [

modules/actions/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Submodule for managing GitHub Actions settings, secrets and variables, environme
1414

1515
| Name | Version |
1616
|------|---------|
17-
| <a name="provider_github"></a> [github](#provider\_github) | 6.2.1 |
17+
| <a name="provider_github"></a> [github](#provider\_github) | 6.2.3 |
1818

1919
## Modules
2020

modules/actions/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ module "secrets_and_variables" {
6868
}
6969

7070
resource "github_repository_deploy_key" "this" {
71-
for_each = toset(var.deploy_keys)
71+
for_each = { for deploy_key in var.deploy_keys : deploy_key.title => deploy_key }
7272

7373
repository = var.repository
7474
key = each.value.key

modules/rulesets/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Submodule for repository rulesets.
1414

1515
| Name | Version |
1616
|------|---------|
17-
| <a name="provider_github"></a> [github](#provider\_github) | 6.2.1 |
17+
| <a name="provider_github"></a> [github](#provider\_github) | 6.2.3 |
1818

1919
## Modules
2020

modules/secrets-and-variables/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Submodule for creating GitHub Actions variables and secrets for Actions, Codespa
1414

1515
| Name | Version |
1616
|------|---------|
17-
| <a name="provider_github"></a> [github](#provider\_github) | 6.2.1 |
17+
| <a name="provider_github"></a> [github](#provider\_github) | 6.2.3 |
1818

1919
## Modules
2020

0 commit comments

Comments
 (0)