Skip to content

Commit

Permalink
added tenant id to GH env
Browse files Browse the repository at this point in the history
  • Loading branch information
damoodamoo committed Aug 30, 2023
1 parent d828a63 commit 4d841d9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions apps/app/github-environment.tf
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,19 @@ resource "github_actions_environment_secret" "aad_auth_client_id" {
]
}

resource "github_actions_environment_secret" "aad_auth_tenant_id" {
for_each = local.branches_and_envs
repository = local.github_repository_name
environment = each.value
secret_name = "AAD_AUTH_TENANT_ID"
plaintext_value = data.azurerm_client_config.current.tenant_id

depends_on = [
github_repository_environment.all,
module.aad_app
]
}

resource "github_actions_environment_secret" "aad_auth_identifier_uri" {
for_each = local.branches_and_envs
repository = local.github_repository_name
Expand Down

0 comments on commit 4d841d9

Please sign in to comment.