Skip to content

Instantly share code, notes, and snippets.

@prabhu
Created July 18, 2020 13:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prabhu/875d4f2cf34ff6d81efc334167c11b26 to your computer and use it in GitHub Desktop.
Save prabhu/875d4f2cf34ff6d81efc334167c11b26 to your computer and use it in GitHub Desktop.
Create GitHub actions secret with Terraform
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