import * as pulumi from "@pulumi/pulumi"; /** * This resource allows you to manage GitHub Workflow permissions for a given repository. * You must have admin access to a repository to use this resource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as github from "@pulumi/github"; * * const example = new github.Repository("example", {name: "my-repository"}); * const test = new github.WorkflowRepositoryPermissions("test", { * defaultWorkflowPermissions: "read", * canApprovePullRequestReviews: true, * repository: example.name, * }); * ``` * * ## Import * * This resource can be imported using the name of the GitHub repository: * * ```sh * $ pulumi import github:index/workflowRepositoryPermissions:WorkflowRepositoryPermissions test my-repository * ``` */ export declare class WorkflowRepositoryPermissions extends pulumi.CustomResource { /** * Get an existing WorkflowRepositoryPermissions resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: WorkflowRepositoryPermissionsState, opts?: pulumi.CustomResourceOptions): WorkflowRepositoryPermissions; /** * Returns true if the given object is an instance of WorkflowRepositoryPermissions. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is WorkflowRepositoryPermissions; /** * Whether GitHub Actions can approve pull requests. Enabling this can be a security risk. */ readonly canApprovePullRequestReviews: pulumi.Output; /** * The default workflow permissions granted to the GITHUB_TOKEN when running workflows. Can be one of: `read` or `write`. */ readonly defaultWorkflowPermissions: pulumi.Output; /** * The GitHub repository */ readonly repository: pulumi.Output; /** * Create a WorkflowRepositoryPermissions resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: WorkflowRepositoryPermissionsArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering WorkflowRepositoryPermissions resources. */ export interface WorkflowRepositoryPermissionsState { /** * Whether GitHub Actions can approve pull requests. Enabling this can be a security risk. */ canApprovePullRequestReviews?: pulumi.Input; /** * The default workflow permissions granted to the GITHUB_TOKEN when running workflows. Can be one of: `read` or `write`. */ defaultWorkflowPermissions?: pulumi.Input; /** * The GitHub repository */ repository?: pulumi.Input; } /** * The set of arguments for constructing a WorkflowRepositoryPermissions resource. */ export interface WorkflowRepositoryPermissionsArgs { /** * Whether GitHub Actions can approve pull requests. Enabling this can be a security risk. */ canApprovePullRequestReviews?: pulumi.Input; /** * The default workflow permissions granted to the GITHUB_TOKEN when running workflows. Can be one of: `read` or `write`. */ defaultWorkflowPermissions?: pulumi.Input; /** * The GitHub repository */ repository: pulumi.Input; } //# sourceMappingURL=workflowRepositoryPermissions.d.ts.map