From e537d244464c21f5b1928947422f66afb9aead57 Mon Sep 17 00:00:00 2001 From: Ben Larabie Date: Thu, 28 Nov 2024 11:10:22 -0500 Subject: [PATCH] documentation gh secret [review] --- aws/github/documentation-secrets.tf | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 aws/github/documentation-secrets.tf diff --git a/aws/github/documentation-secrets.tf b/aws/github/documentation-secrets.tf new file mode 100644 index 000000000..7fc1e31c9 --- /dev/null +++ b/aws/github/documentation-secrets.tf @@ -0,0 +1,6 @@ +resource "github_actions_secret" "documentation_op_service_account_token" { + count = var.env == "production" || var.env == "staging" ? 1 : 0 + repository = data.github_repository.notification_documentation.name + secret_name = "OP_SERVICE_ACCOUNT_TOKEN_${upper(var.env)}" + plaintext_value = var.op_service_account_token +}