diff --git a/examples/basic/main.tf b/examples/basic/main.tf index 437b6ac..fcc16ea 100644 --- a/examples/basic/main.tf +++ b/examples/basic/main.tf @@ -13,7 +13,6 @@ module "eks_deployment" { region = "us-east-1" template_repo_org = "my-org" - github_token = var.github_token github_server_url = "https://github.e.it.census.gov" cluster_config = { diff --git a/main.tf b/main.tf index 54593d6..a3f9395 100644 --- a/main.tf +++ b/main.tf @@ -28,12 +28,6 @@ resource "null_resource" "trigger_workflow" { provisioner "local-exec" { command = "python3 scripts/trigger_workflow.py ${module.github_repo.full_name} cluster-plan '{\"environment\":\"${var.environment}\",\"region\":\"${var.region}\",\"cluster_dir\":\"${var.cluster_config.cluster_name}\",\"auto_approve\":true}'" - - # environment = { - # GITHUB_TOKEN = var.github_token - # GITHUB_OWNER = var.organization - # GITHUB_SERVER_URL = var.github_server_url - # } } depends_on = [module.github_repo] diff --git a/variables.tf b/variables.tf index 0c78add..23992cc 100644 --- a/variables.tf +++ b/variables.tf @@ -202,12 +202,6 @@ variable "github_actions_workflows" { default = [] } -variable "github_token" { - description = "GitHub token for triggering workflows" - type = string - sensitive = true -} - variable "github_server_url" { description = "GitHub Enterprise server URL (e.g., https://github.e.it.census.gov)" type = string diff --git a/workflow_trigger.tftest.hcl b/workflow_trigger.tftest.hcl index 11ffc81..ec05681 100644 --- a/workflow_trigger.tftest.hcl +++ b/workflow_trigger.tftest.hcl @@ -23,7 +23,6 @@ variables { } provider "github" { - token = var.github_token base_url = var.github_server_url }