Actions Runner Group
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
Properties
Whether public repositories can be added to the runner group. Defaults to false.
If true, the runner group will be restricted to running only the workflows specified in the selected_workflows array. Defaults to false.
The GitHub API URL for the runner group's runners
GitHub API URL for the runner group's repositories
IDs of the repositories which should be added to the runner group
List of workflows the runner group should be allowed to run. This setting will be ignored unless restricted_to_workflows is set to true.
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.