ActionsRunnerGroupArgs

data class ActionsRunnerGroupArgs(val allowsPublicRepositories: Output<Boolean>? = null, val name: Output<String>? = null, val restrictedToWorkflows: Output<Boolean>? = null, val selectedRepositoryIds: Output<List<Int>>? = null, val selectedWorkflows: Output<List<String>>? = null, val visibility: Output<String>? = null) : ConvertibleToJava<ActionsRunnerGroupArgs>

This resource allows you to create and manage GitHub Actions runner groups within your GitHub enterprise organizations. You must have admin access to an organization 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.Repository;
import com.pulumi.github.ActionsRunnerGroup;
import com.pulumi.github.ActionsRunnerGroupArgs;
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 exampleRepository = new Repository("exampleRepository");
var exampleActionsRunnerGroup = new ActionsRunnerGroup("exampleActionsRunnerGroup", ActionsRunnerGroupArgs.builder()
.visibility("selected")
.selectedRepositoryIds(exampleRepository.repoId())
.build());
}
}

Import

This resource can be imported using the ID of the runner group:

$ pulumi import github:index/actionsRunnerGroup:ActionsRunnerGroup test 7

Constructors

Link copied to clipboard
constructor(allowsPublicRepositories: Output<Boolean>? = null, name: Output<String>? = null, restrictedToWorkflows: Output<Boolean>? = null, selectedRepositoryIds: Output<List<Int>>? = null, selectedWorkflows: Output<List<String>>? = null, visibility: Output<String>? = null)

Properties

Link copied to clipboard
val allowsPublicRepositories: Output<Boolean>? = null

Whether public repositories can be added to the runner group. Defaults to false.

Link copied to clipboard
val name: Output<String>? = null

Name of the runner group

Link copied to clipboard
val restrictedToWorkflows: Output<Boolean>? = null

If true, the runner group will be restricted to running only the workflows specified in the selected_workflows array. Defaults to false.

Link copied to clipboard
val selectedRepositoryIds: Output<List<Int>>? = null

IDs of the repositories which should be added to the runner group

Link copied to clipboard
val selectedWorkflows: Output<List<String>>? = null

List of workflows the runner group should be allowed to run. This setting will be ignored unless restricted_to_workflows is set to true.

Link copied to clipboard
val visibility: Output<String>? = null

Visibility of a runner group. Whether the runner group can include all, selected, or private repositories. A value of private is not currently supported due to limitations in the GitHub API.

Functions

Link copied to clipboard
open override fun toJava(): ActionsRunnerGroupArgs