Skip to content

Commit

Permalink
Remove GitHub token variable and references to streamline configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
arnol377 committed Apr 14, 2025
1 parent 49343ca commit 9335f0b
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 14 deletions.
1 change: 0 additions & 1 deletion examples/basic/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
6 changes: 0 additions & 6 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
6 changes: 0 additions & 6 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion workflow_trigger.tftest.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ variables {
}

provider "github" {
token = var.github_token
base_url = var.github_server_url
}

Expand Down

0 comments on commit 9335f0b

Please sign in to comment.