feat: pass weblate token to gha (#966)

This commit is contained in:
bo0tzz
2025-09-11 10:25:18 +01:00
committed by GitHub
parent 14dea6aa4e
commit d2a8f93e1a
2 changed files with 13 additions and 1 deletions
@@ -23,7 +23,8 @@ module "manual-secrets" {
"TIGRIS_WRITE_KEY_ID",
"TIGRIS_WRITE_ACCESS_KEY",
"TIGRIS_ADMIN_KEY_ID",
"TIGRIS_ADMIN_ACCESS_KEY"
"TIGRIS_ADMIN_ACCESS_KEY",
"WEBLATE_API_KEY"
]
dev = [
"MONITORING_GRAFANA_TF_AUTH_TOKEN",
@@ -162,3 +162,14 @@ resource "github_actions_organization_secret" "DIGTALOCEAN_API_TOKEN" {
plaintext_value = data.onepassword_item.digitalocean_api_token.password
visibility = "all"
}
data "onepassword_item" "weblate_api_key" {
title = "WEBLATE_API_KEY"
vault = data.onepassword_vault.tf.name
}
resource "github_actions_organization_secret" "WEBLATE_TOKEN" {
secret_name = "WEBLATE_TOKEN"
plaintext_value = data.onepassword_item.weblate_api_key.password
visibility = "all"
}