Skip to content

Commit

Permalink
adding manifests workflow token (#1714)
Browse files Browse the repository at this point in the history
* adding manifests workflow token
[review]

* Update documentation-secrets.tf
  • Loading branch information
P0NDER0SA authored Jan 9, 2025
1 parent 1008a33 commit a475d55
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 0 deletions.
6 changes: 6 additions & 0 deletions aws/github/admin-secrets.tf
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,9 @@ resource "github_actions_secret" "admin_slack_webhook" {
plaintext_value = var.notify_dev_slack_webhook
}

resource "github_actions_secret" "admin_github_manifests_workflow_token" {
count = var.env == "staging" ? 1 : 0
repository = data.github_repository.notification_admin.name
secret_name = "MANIFESTS_WORKFLOW_TOKEN"
plaintext_value = var.github_manifests_workflow_token
}
7 changes: 7 additions & 0 deletions aws/github/api-secrets.tf
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,10 @@ resource "github_actions_secret" "api_slack_webhook" {
secret_name = "SLACK_WEBHOOK"
plaintext_value = var.notify_dev_slack_webhook
}

resource "github_actions_secret" "api_github_manifests_workflow_token" {
count = var.env == "staging" ? 1 : 0
repository = data.github_repository.notification_api.name
secret_name = "MANIFESTS_WORKFLOW_TOKEN"
plaintext_value = var.github_manifests_workflow_token
}
7 changes: 7 additions & 0 deletions aws/github/document-download-secrets.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,10 @@ resource "github_actions_secret" "dd_slack_webhook" {
secret_name = "SLACK_WEBHOOK"
plaintext_value = var.notify_dev_slack_webhook
}

resource "github_actions_secret" "dd_github_manifests_workflow_token" {
count = var.env == "staging" ? 1 : 0
repository = data.github_repository.notification_document_download.name
secret_name = "MANIFESTS_WORKFLOW_TOKEN"
plaintext_value = var.github_manifests_workflow_token
}
7 changes: 7 additions & 0 deletions aws/github/documentation-secrets.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,10 @@ resource "github_actions_secret" "documentation_op_service_account_token" {
secret_name = "OP_SERVICE_ACCOUNT_TOKEN_${upper(var.env)}"
plaintext_value = var.op_service_account_token
}

resource "github_actions_secret" "documentation_github_manifests_workflow_token" {
count = var.env == "staging" ? 1 : 0
repository = data.github_repository.notification_documentation.name
secret_name = "MANIFESTS_WORKFLOW_TOKEN"
plaintext_value = var.github_manifests_workflow_token
}
5 changes: 5 additions & 0 deletions env/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -1051,3 +1051,8 @@ variable "ipv4_maxmind_license_key" {
sensitive = true
default = "prodonly"
}

variable "github_manifests_workflow_token" {
type = string
sensitive = true
}

0 comments on commit a475d55

Please sign in to comment.