-
Notifications
You must be signed in to change notification settings - Fork 1
/
github-repo-secrets.tf
45 lines (40 loc) · 1.44 KB
/
github-repo-secrets.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# ARM_TENANT_ID
resource "github_actions_secret" "ARM_TENANT_ID" {
repository = data.github_repository.main.id
secret_name = "ARM_TENANT_ID"
plaintext_value = data.azurerm_client_config.current.tenant_id
}
# ARM_SUBSCRIPTION_ID
resource "github_actions_secret" "ARM_SUBSCRIPTION_ID" {
repository = data.github_repository.main.id
secret_name = "ARM_SUBSCRIPTION_ID"
plaintext_value = data.azurerm_client_config.current.subscription_id
}
# GITHUB_TOKEN
resource "github_actions_secret" "GITHUB_TOKEN" {
repository = data.github_repository.main.id
secret_name = "GH_TOKEN"
plaintext_value = var.github_token
}
# SNYK_TOKEN
resource "github_actions_secret" "SNYK_TOKEN" {
repository = data.github_repository.main.id
secret_name = "SNYK_TOKEN"
plaintext_value = var.snyk_token
}
# Cloudflare
resource "github_actions_secret" "CLOUDFLARE_SERVICE_KEY" {
repository = data.github_repository.main.id
secret_name = "CLOUDFLARE_SERVICE_KEY"
plaintext_value = var.cloudflare_service_key
}
resource "github_actions_secret" "CLOUDFLARE_ZONE_ID" {
repository = data.github_repository.main.id
secret_name = "CLOUDFLARE_ZONE_ID"
plaintext_value = var.cloudflare_zone_id
}
resource "github_actions_secret" "CLOUDFLARE_API_TOKEN" {
repository = data.github_repository.main.id
secret_name = "CLOUDFLARE_API_TOKEN"
plaintext_value = var.cloudflare_api_token
}