github_actions_variable

This resource allows you to create and manage GitHub Actions variables within your GitHub repositories. You must have write access to a repository to use this resource.

Example Usage

resource "github_actions_variable" "example_variable" {
  repository       = "example_repository"
  variable_name    = "example_variable_name"
  value            = "example_variable_value"
}

Argument Reference

The following arguments are supported:

Attributes Reference

Import

GitHub Actions variables can be imported using an ID made up of repository:variable_name, e.g.

$ terraform import github_actions_variable.myvariable myrepo:myvariable