Skip to content

Commit

Permalink
Merge pull request #6 from tbobm/fix/use-full-repo-name
Browse files Browse the repository at this point in the history
fix: use `var.repository` instead of repo name
  • Loading branch information
tbobm authored Dec 15, 2021
2 parents fd9298c + 383a50a commit 3550643
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ No modules.
|------|------|
| [github_actions_environment_secret.this](https://registry.terraform.io/providers/hashicorp/github/latest/docs/resources/actions_environment_secret) | resource |
| [github_actions_secret.this](https://registry.terraform.io/providers/hashicorp/github/latest/docs/resources/actions_secret) | resource |
| [github_repository.this](https://registry.terraform.io/providers/hashicorp/github/latest/docs/data-sources/repository) | data source |

## Inputs

Expand Down
3 changes: 0 additions & 3 deletions data.tf

This file was deleted.

4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
resource "github_actions_secret" "this" {
for_each = local.secrets

repository = data.github_repository.this.name
repository = var.repository
secret_name = each.value.name
plaintext_value = each.value.plaintext
}
Expand All @@ -12,7 +12,7 @@ resource "github_actions_environment_secret" "this" {
elem.id => elem
}

repository = data.github_repository.this.name
repository = var.repository
secret_name = each.value.definition.name
environment = each.value.environment
plaintext_value = each.value.definition.plaintext
Expand Down

0 comments on commit 3550643

Please sign in to comment.