ActionsOrganizationVariable

class ActionsOrganizationVariable : KotlinCustomResource

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

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.github.ActionsOrganizationVariable;
import com.pulumi.github.ActionsOrganizationVariableArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleVariable = new ActionsOrganizationVariable("exampleVariable", ActionsOrganizationVariableArgs.builder()
.value("example_variable_value")
.variableName("example_variable_name")
.visibility("private")
.build());
}
}

Import

This resource can be imported using an ID made up of the variable name:

$ pulumi import github:index/actionsOrganizationVariable:ActionsOrganizationVariable test_variable test_variable_name

Properties

Link copied to clipboard
val createdAt: Output<String>

Date of actions_variable creation.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

An array of repository ids that can access the organization variable.

Link copied to clipboard
val updatedAt: Output<String>

Date of actions_variable update.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val value: Output<String>

Value of the variable

Link copied to clipboard
val variableName: Output<String>

Name of the variable

Link copied to clipboard
val visibility: Output<String>

Configures the access that repositories have to the organization variable. Must be one of all, private, selected. selected_repository_ids is required if set to selected.