Created
July 18, 2020 13:53
-
-
Save prabhu/875d4f2cf34ff6d81efc334167c11b26 to your computer and use it in GitHub Desktop.
Create GitHub actions secret with Terraform
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data "github_repository" "poc" { | |
full_name = var.poc_repo | |
} | |
// Create secrets in a single poc repo | |
resource "github_actions_secret" "my_secret" { | |
repository = data.github_repository.poc.name | |
secret_name = "SECRET_KEY" | |
plaintext_value = var.secret_value | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment