Skip to content

Commit

Permalink
Passed github pat token via aws secret
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin Khramtsov committed Aug 17, 2024
1 parent b5b26a0 commit b4d60e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion terraform/modules/k8s-addons/eks-gha-runner-scale-set.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ locals {
chart_version = local.helm_releases[index(local.helm_releases.*.id, "gha-runner-scale-set")].chart_version
namespace = local.helm_releases[index(local.helm_releases.*.id, "gha-runner-scale-set")].namespace
}
kube_github_runner_github_token = lookup(jsondecode(data.aws_secretsmanager_secret_version.infra.secret_string), "github_pat_token", "")

gha_runner_scale_set_values = <<VALUES
githubConfigUrl: "https://github.com/kvvit/actions"
githubConfigSecret:
github_token: "my_super_puper_secret_token"
github_token: "${local.kube_github_runner_github_token}"
maxRunners: 5
minRunners: 0
Expand Down

0 comments on commit b4d60e0

Please sign in to comment.