scope GitHub App secret to the github unit, use team slugs
This commit is contained in:
@@ -9,12 +9,22 @@ include "config" {
|
||||
}
|
||||
|
||||
locals {
|
||||
owner = "IUCLabs"
|
||||
github = include.config.locals.github
|
||||
owner = "IUCLabs"
|
||||
github = include.config.locals.github
|
||||
vault_path = "kv/service/github/iuclabs/terraform"
|
||||
}
|
||||
|
||||
terraform {
|
||||
source = "../../../modules/github_org"
|
||||
|
||||
extra_arguments "github_app" {
|
||||
commands = ["plan", "apply", "destroy", "refresh", "import"]
|
||||
env_vars = {
|
||||
GITHUB_APP_ID = run_cmd("--terragrunt-quiet", "vault", "kv", "get", "-field=app_id", local.vault_path)
|
||||
GITHUB_APP_INSTALLATION_ID = run_cmd("--terragrunt-quiet", "vault", "kv", "get", "-field=installation_id", local.vault_path)
|
||||
GITHUB_APP_PEM_FILE = run_cmd("--terragrunt-quiet", "vault", "kv", "get", "-field=pem", local.vault_path)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
generate "provider" {
|
||||
|
||||
Reference in New Issue
Block a user