1. Packages
  2. GitHub
  3. API Docs
  4. Repository
GitHub v5.22.0 published on Tuesday, Oct 31, 2023 by Pulumi

github.Repository

Explore with Pulumi AI

github logo
GitHub v5.22.0 published on Tuesday, Oct 31, 2023 by Pulumi

    This resource allows you to create and manage repositories within your GitHub organization or personal account.

    Note: When used with GitHub App authentication, even GET requests must have the contents:write permission or else the allow_merge_commit, allow_rebase_merge, and allow_squash_merge attributes will be ignored, causing confusing diffs.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Github = Pulumi.Github;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Github.Repository("example", new()
        {
            Description = "My awesome codebase",
            Template = new Github.Inputs.RepositoryTemplateArgs
            {
                IncludeAllBranches = true,
                Owner = "github",
                Repository = "terraform-template-module",
            },
            Visibility = "public",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-github/sdk/v5/go/github"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := github.NewRepository(ctx, "example", &github.RepositoryArgs{
    			Description: pulumi.String("My awesome codebase"),
    			Template: &github.RepositoryTemplateArgs{
    				IncludeAllBranches: pulumi.Bool(true),
    				Owner:              pulumi.String("github"),
    				Repository:         pulumi.String("terraform-template-module"),
    			},
    			Visibility: pulumi.String("public"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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.RepositoryArgs;
    import com.pulumi.github.inputs.RepositoryTemplateArgs;
    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 example = new Repository("example", RepositoryArgs.builder()        
                .description("My awesome codebase")
                .template(RepositoryTemplateArgs.builder()
                    .includeAllBranches(true)
                    .owner("github")
                    .repository("terraform-template-module")
                    .build())
                .visibility("public")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_github as github
    
    example = github.Repository("example",
        description="My awesome codebase",
        template=github.RepositoryTemplateArgs(
            include_all_branches=True,
            owner="github",
            repository="terraform-template-module",
        ),
        visibility="public")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as github from "@pulumi/github";
    
    const example = new github.Repository("example", {
        description: "My awesome codebase",
        template: {
            includeAllBranches: true,
            owner: "github",
            repository: "terraform-template-module",
        },
        visibility: "public",
    });
    
    resources:
      example:
        type: github:Repository
        properties:
          description: My awesome codebase
          template:
            includeAllBranches: true
            owner: github
            repository: terraform-template-module
          visibility: public
    

    With GitHub Pages Enabled

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Github = Pulumi.Github;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Github.Repository("example", new()
        {
            Description = "My awesome web page",
            Pages = new Github.Inputs.RepositoryPagesArgs
            {
                Source = new Github.Inputs.RepositoryPagesSourceArgs
                {
                    Branch = "master",
                    Path = "/docs",
                },
            },
            Private = false,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-github/sdk/v5/go/github"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := github.NewRepository(ctx, "example", &github.RepositoryArgs{
    			Description: pulumi.String("My awesome web page"),
    			Pages: &github.RepositoryPagesArgs{
    				Source: &github.RepositoryPagesSourceArgs{
    					Branch: pulumi.String("master"),
    					Path:   pulumi.String("/docs"),
    				},
    			},
    			Private: pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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.RepositoryArgs;
    import com.pulumi.github.inputs.RepositoryPagesArgs;
    import com.pulumi.github.inputs.RepositoryPagesSourceArgs;
    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 example = new Repository("example", RepositoryArgs.builder()        
                .description("My awesome web page")
                .pages(RepositoryPagesArgs.builder()
                    .source(RepositoryPagesSourceArgs.builder()
                        .branch("master")
                        .path("/docs")
                        .build())
                    .build())
                .private_(false)
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_github as github
    
    example = github.Repository("example",
        description="My awesome web page",
        pages=github.RepositoryPagesArgs(
            source=github.RepositoryPagesSourceArgs(
                branch="master",
                path="/docs",
            ),
        ),
        private=False)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as github from "@pulumi/github";
    
    const example = new github.Repository("example", {
        description: "My awesome web page",
        pages: {
            source: {
                branch: "master",
                path: "/docs",
            },
        },
        "private": false,
    });
    
    resources:
      example:
        type: github:Repository
        properties:
          description: My awesome web page
          pages:
            source:
              branch: master
              path: /docs
          private: false
    

    Create Repository Resource

    new Repository(name: string, args?: RepositoryArgs, opts?: CustomResourceOptions);
    @overload
    def Repository(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   allow_auto_merge: Optional[bool] = None,
                   allow_merge_commit: Optional[bool] = None,
                   allow_rebase_merge: Optional[bool] = None,
                   allow_squash_merge: Optional[bool] = None,
                   allow_update_branch: Optional[bool] = None,
                   archive_on_destroy: Optional[bool] = None,
                   archived: Optional[bool] = None,
                   auto_init: Optional[bool] = None,
                   default_branch: Optional[str] = None,
                   delete_branch_on_merge: Optional[bool] = None,
                   description: Optional[str] = None,
                   gitignore_template: Optional[str] = None,
                   has_discussions: Optional[bool] = None,
                   has_downloads: Optional[bool] = None,
                   has_issues: Optional[bool] = None,
                   has_projects: Optional[bool] = None,
                   has_wiki: Optional[bool] = None,
                   homepage_url: Optional[str] = None,
                   ignore_vulnerability_alerts_during_read: Optional[bool] = None,
                   is_template: Optional[bool] = None,
                   license_template: Optional[str] = None,
                   merge_commit_message: Optional[str] = None,
                   merge_commit_title: Optional[str] = None,
                   name: Optional[str] = None,
                   pages: Optional[RepositoryPagesArgs] = None,
                   private: Optional[bool] = None,
                   security_and_analysis: Optional[RepositorySecurityAndAnalysisArgs] = None,
                   squash_merge_commit_message: Optional[str] = None,
                   squash_merge_commit_title: Optional[str] = None,
                   template: Optional[RepositoryTemplateArgs] = None,
                   topics: Optional[Sequence[str]] = None,
                   visibility: Optional[str] = None,
                   vulnerability_alerts: Optional[bool] = None)
    @overload
    def Repository(resource_name: str,
                   args: Optional[RepositoryArgs] = None,
                   opts: Optional[ResourceOptions] = None)
    func NewRepository(ctx *Context, name string, args *RepositoryArgs, opts ...ResourceOption) (*Repository, error)
    public Repository(string name, RepositoryArgs? args = null, CustomResourceOptions? opts = null)
    public Repository(String name, RepositoryArgs args)
    public Repository(String name, RepositoryArgs args, CustomResourceOptions options)
    
    type: github:Repository
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args RepositoryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args RepositoryArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args RepositoryArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RepositoryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RepositoryArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Repository Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Repository resource accepts the following input properties:

    AllowAutoMerge bool

    Set to true to allow auto-merging pull requests on the repository.

    AllowMergeCommit bool

    Set to false to disable merge commits on the repository.

    AllowRebaseMerge bool

    Set to false to disable rebase merges on the repository.

    AllowSquashMerge bool

    Set to false to disable squash merges on the repository.

    AllowUpdateBranch bool

    Set to true to always suggest updating pull request branches.

    ArchiveOnDestroy bool

    Set to true to archive the repository instead of deleting on destroy.

    Archived bool

    Specifies if the repository should be archived. Defaults to false. NOTE Currently, the API does not support unarchiving.

    AutoInit bool

    Set to true to produce an initial commit in the repository.

    DefaultBranch string

    (Deprecated: Use github.BranchDefault resource instead) The name of the default branch of the repository. NOTE: This can only be set after a repository has already been created, and after a correct reference has been created for the target branch inside the repository. This means a user will have to omit this parameter from the initial repository creation and create the target branch inside of the repository prior to setting this attribute.

    Deprecated:

    Use the github_branch_default resource instead

    DeleteBranchOnMerge bool

    Automatically delete head branch after a pull request is merged. Defaults to false.

    Description string

    A description of the repository.

    GitignoreTemplate string

    Use the name of the template without the extension. For example, "Haskell".

    HasDiscussions bool

    Set to true to enable GitHub Discussions on the repository. Defaults to false.

    HasDownloads bool

    Set to true to enable the (deprecated) downloads features on the repository.

    HasIssues bool

    Set to true to enable the GitHub Issues features on the repository.

    HasProjects bool

    Set to true to enable the GitHub Projects features on the repository. Per the GitHub documentation when in an organization that has disabled repository projects it will default to false and will otherwise default to true. If you specify true when it has been disabled it will return an error.

    HasWiki bool

    Set to true to enable the GitHub Wiki features on the repository.

    HomepageUrl string

    URL of a page describing the project.

    IgnoreVulnerabilityAlertsDuringRead bool

    Set to true to not call the vulnerability alerts endpoint so the resource can also be used without admin permissions during read.

    IsTemplate bool

    Set to true to tell GitHub that this is a template repository.

    LicenseTemplate string

    Use the name of the template without the extension. For example, "mit" or "mpl-2.0".

    MergeCommitMessage string

    Can be PR_BODY, PR_TITLE, or BLANK for a default merge commit message. Applicable only if allow_merge_commit is true.

    MergeCommitTitle string

    Can be PR_TITLE or MERGE_MESSAGE for a default merge commit title. Applicable only if allow_merge_commit is true.

    Name string

    The name of the repository.

    Pages RepositoryPages

    The repository's GitHub Pages configuration. See GitHub Pages Configuration below for details.

    Private bool

    Set to true to create a private repository. Repositories are created as public (e.g. open source) by default.

    Deprecated:

    use visibility instead

    SecurityAndAnalysis RepositorySecurityAndAnalysis

    The repository's security and analysis configuration. See Security and Analysis Configuration below for details.

    SquashMergeCommitMessage string

    Can be PR_BODY, COMMIT_MESSAGES, or BLANK for a default squash merge commit message. Applicable only if allow_squash_merge is true.

    SquashMergeCommitTitle string

    Can be PR_TITLE or COMMIT_OR_PR_TITLE for a default squash merge commit title. Applicable only if allow_squash_merge is true.

    Template RepositoryTemplate

    Use a template repository to create this resource. See Template Repositories below for details.

    Topics List<string>

    The list of topics of the repository.

    Visibility string

    Can be public or private. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, visibility can also be internal. The visibility parameter overrides the private parameter.

    VulnerabilityAlerts bool

    Set to true to enable security alerts for vulnerable dependencies. Enabling requires alerts to be enabled on the owner level. (Note for importing: GitHub enables the alerts on public repos but disables them on private repos by default.) See GitHub Documentation for details. Note that vulnerability alerts have not been successfully tested on any GitHub Enterprise instance and may be unavailable in those settings.

    AllowAutoMerge bool

    Set to true to allow auto-merging pull requests on the repository.

    AllowMergeCommit bool

    Set to false to disable merge commits on the repository.

    AllowRebaseMerge bool

    Set to false to disable rebase merges on the repository.

    AllowSquashMerge bool

    Set to false to disable squash merges on the repository.

    AllowUpdateBranch bool

    Set to true to always suggest updating pull request branches.

    ArchiveOnDestroy bool

    Set to true to archive the repository instead of deleting on destroy.

    Archived bool

    Specifies if the repository should be archived. Defaults to false. NOTE Currently, the API does not support unarchiving.

    AutoInit bool

    Set to true to produce an initial commit in the repository.

    DefaultBranch string

    (Deprecated: Use github.BranchDefault resource instead) The name of the default branch of the repository. NOTE: This can only be set after a repository has already been created, and after a correct reference has been created for the target branch inside the repository. This means a user will have to omit this parameter from the initial repository creation and create the target branch inside of the repository prior to setting this attribute.

    Deprecated:

    Use the github_branch_default resource instead

    DeleteBranchOnMerge bool

    Automatically delete head branch after a pull request is merged. Defaults to false.

    Description string

    A description of the repository.

    GitignoreTemplate string

    Use the name of the template without the extension. For example, "Haskell".

    HasDiscussions bool

    Set to true to enable GitHub Discussions on the repository. Defaults to false.

    HasDownloads bool

    Set to true to enable the (deprecated) downloads features on the repository.

    HasIssues bool

    Set to true to enable the GitHub Issues features on the repository.

    HasProjects bool

    Set to true to enable the GitHub Projects features on the repository. Per the GitHub documentation when in an organization that has disabled repository projects it will default to false and will otherwise default to true. If you specify true when it has been disabled it will return an error.

    HasWiki bool

    Set to true to enable the GitHub Wiki features on the repository.

    HomepageUrl string

    URL of a page describing the project.

    IgnoreVulnerabilityAlertsDuringRead bool

    Set to true to not call the vulnerability alerts endpoint so the resource can also be used without admin permissions during read.

    IsTemplate bool

    Set to true to tell GitHub that this is a template repository.

    LicenseTemplate string

    Use the name of the template without the extension. For example, "mit" or "mpl-2.0".

    MergeCommitMessage string

    Can be PR_BODY, PR_TITLE, or BLANK for a default merge commit message. Applicable only if allow_merge_commit is true.

    MergeCommitTitle string

    Can be PR_TITLE or MERGE_MESSAGE for a default merge commit title. Applicable only if allow_merge_commit is true.

    Name string

    The name of the repository.

    Pages RepositoryPagesArgs

    The repository's GitHub Pages configuration. See GitHub Pages Configuration below for details.

    Private bool

    Set to true to create a private repository. Repositories are created as public (e.g. open source) by default.

    Deprecated:

    use visibility instead

    SecurityAndAnalysis RepositorySecurityAndAnalysisArgs

    The repository's security and analysis configuration. See Security and Analysis Configuration below for details.

    SquashMergeCommitMessage string

    Can be PR_BODY, COMMIT_MESSAGES, or BLANK for a default squash merge commit message. Applicable only if allow_squash_merge is true.

    SquashMergeCommitTitle string

    Can be PR_TITLE or COMMIT_OR_PR_TITLE for a default squash merge commit title. Applicable only if allow_squash_merge is true.

    Template RepositoryTemplateArgs

    Use a template repository to create this resource. See Template Repositories below for details.

    Topics []string

    The list of topics of the repository.

    Visibility string

    Can be public or private. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, visibility can also be internal. The visibility parameter overrides the private parameter.

    VulnerabilityAlerts bool

    Set to true to enable security alerts for vulnerable dependencies. Enabling requires alerts to be enabled on the owner level. (Note for importing: GitHub enables the alerts on public repos but disables them on private repos by default.) See GitHub Documentation for details. Note that vulnerability alerts have not been successfully tested on any GitHub Enterprise instance and may be unavailable in those settings.

    allowAutoMerge Boolean

    Set to true to allow auto-merging pull requests on the repository.

    allowMergeCommit Boolean

    Set to false to disable merge commits on the repository.

    allowRebaseMerge Boolean

    Set to false to disable rebase merges on the repository.

    allowSquashMerge Boolean

    Set to false to disable squash merges on the repository.

    allowUpdateBranch Boolean

    Set to true to always suggest updating pull request branches.

    archiveOnDestroy Boolean

    Set to true to archive the repository instead of deleting on destroy.

    archived Boolean

    Specifies if the repository should be archived. Defaults to false. NOTE Currently, the API does not support unarchiving.

    autoInit Boolean

    Set to true to produce an initial commit in the repository.

    defaultBranch String

    (Deprecated: Use github.BranchDefault resource instead) The name of the default branch of the repository. NOTE: This can only be set after a repository has already been created, and after a correct reference has been created for the target branch inside the repository. This means a user will have to omit this parameter from the initial repository creation and create the target branch inside of the repository prior to setting this attribute.

    Deprecated:

    Use the github_branch_default resource instead

    deleteBranchOnMerge Boolean

    Automatically delete head branch after a pull request is merged. Defaults to false.

    description String

    A description of the repository.

    gitignoreTemplate String

    Use the name of the template without the extension. For example, "Haskell".

    hasDiscussions Boolean

    Set to true to enable GitHub Discussions on the repository. Defaults to false.

    hasDownloads Boolean

    Set to true to enable the (deprecated) downloads features on the repository.

    hasIssues Boolean

    Set to true to enable the GitHub Issues features on the repository.

    hasProjects Boolean

    Set to true to enable the GitHub Projects features on the repository. Per the GitHub documentation when in an organization that has disabled repository projects it will default to false and will otherwise default to true. If you specify true when it has been disabled it will return an error.

    hasWiki Boolean

    Set to true to enable the GitHub Wiki features on the repository.

    homepageUrl String

    URL of a page describing the project.

    ignoreVulnerabilityAlertsDuringRead Boolean

    Set to true to not call the vulnerability alerts endpoint so the resource can also be used without admin permissions during read.

    isTemplate Boolean

    Set to true to tell GitHub that this is a template repository.

    licenseTemplate String

    Use the name of the template without the extension. For example, "mit" or "mpl-2.0".

    mergeCommitMessage String

    Can be PR_BODY, PR_TITLE, or BLANK for a default merge commit message. Applicable only if allow_merge_commit is true.

    mergeCommitTitle String

    Can be PR_TITLE or MERGE_MESSAGE for a default merge commit title. Applicable only if allow_merge_commit is true.

    name String

    The name of the repository.

    pages RepositoryPages

    The repository's GitHub Pages configuration. See GitHub Pages Configuration below for details.

    private_ Boolean

    Set to true to create a private repository. Repositories are created as public (e.g. open source) by default.

    Deprecated:

    use visibility instead

    securityAndAnalysis RepositorySecurityAndAnalysis

    The repository's security and analysis configuration. See Security and Analysis Configuration below for details.

    squashMergeCommitMessage String

    Can be PR_BODY, COMMIT_MESSAGES, or BLANK for a default squash merge commit message. Applicable only if allow_squash_merge is true.

    squashMergeCommitTitle String

    Can be PR_TITLE or COMMIT_OR_PR_TITLE for a default squash merge commit title. Applicable only if allow_squash_merge is true.

    template RepositoryTemplate

    Use a template repository to create this resource. See Template Repositories below for details.

    topics List<String>

    The list of topics of the repository.

    visibility String

    Can be public or private. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, visibility can also be internal. The visibility parameter overrides the private parameter.

    vulnerabilityAlerts Boolean

    Set to true to enable security alerts for vulnerable dependencies. Enabling requires alerts to be enabled on the owner level. (Note for importing: GitHub enables the alerts on public repos but disables them on private repos by default.) See GitHub Documentation for details. Note that vulnerability alerts have not been successfully tested on any GitHub Enterprise instance and may be unavailable in those settings.

    allowAutoMerge boolean

    Set to true to allow auto-merging pull requests on the repository.

    allowMergeCommit boolean

    Set to false to disable merge commits on the repository.

    allowRebaseMerge boolean

    Set to false to disable rebase merges on the repository.

    allowSquashMerge boolean

    Set to false to disable squash merges on the repository.

    allowUpdateBranch boolean

    Set to true to always suggest updating pull request branches.

    archiveOnDestroy boolean

    Set to true to archive the repository instead of deleting on destroy.

    archived boolean

    Specifies if the repository should be archived. Defaults to false. NOTE Currently, the API does not support unarchiving.

    autoInit boolean

    Set to true to produce an initial commit in the repository.

    defaultBranch string

    (Deprecated: Use github.BranchDefault resource instead) The name of the default branch of the repository. NOTE: This can only be set after a repository has already been created, and after a correct reference has been created for the target branch inside the repository. This means a user will have to omit this parameter from the initial repository creation and create the target branch inside of the repository prior to setting this attribute.

    Deprecated:

    Use the github_branch_default resource instead

    deleteBranchOnMerge boolean

    Automatically delete head branch after a pull request is merged. Defaults to false.

    description string

    A description of the repository.

    gitignoreTemplate string

    Use the name of the template without the extension. For example, "Haskell".

    hasDiscussions boolean

    Set to true to enable GitHub Discussions on the repository. Defaults to false.

    hasDownloads boolean

    Set to true to enable the (deprecated) downloads features on the repository.

    hasIssues boolean

    Set to true to enable the GitHub Issues features on the repository.

    hasProjects boolean

    Set to true to enable the GitHub Projects features on the repository. Per the GitHub documentation when in an organization that has disabled repository projects it will default to false and will otherwise default to true. If you specify true when it has been disabled it will return an error.

    hasWiki boolean

    Set to true to enable the GitHub Wiki features on the repository.

    homepageUrl string

    URL of a page describing the project.

    ignoreVulnerabilityAlertsDuringRead boolean

    Set to true to not call the vulnerability alerts endpoint so the resource can also be used without admin permissions during read.

    isTemplate boolean

    Set to true to tell GitHub that this is a template repository.

    licenseTemplate string

    Use the name of the template without the extension. For example, "mit" or "mpl-2.0".

    mergeCommitMessage string

    Can be PR_BODY, PR_TITLE, or BLANK for a default merge commit message. Applicable only if allow_merge_commit is true.

    mergeCommitTitle string

    Can be PR_TITLE or MERGE_MESSAGE for a default merge commit title. Applicable only if allow_merge_commit is true.

    name string

    The name of the repository.

    pages RepositoryPages

    The repository's GitHub Pages configuration. See GitHub Pages Configuration below for details.

    private boolean

    Set to true to create a private repository. Repositories are created as public (e.g. open source) by default.

    Deprecated:

    use visibility instead

    securityAndAnalysis RepositorySecurityAndAnalysis

    The repository's security and analysis configuration. See Security and Analysis Configuration below for details.

    squashMergeCommitMessage string

    Can be PR_BODY, COMMIT_MESSAGES, or BLANK for a default squash merge commit message. Applicable only if allow_squash_merge is true.

    squashMergeCommitTitle string

    Can be PR_TITLE or COMMIT_OR_PR_TITLE for a default squash merge commit title. Applicable only if allow_squash_merge is true.

    template RepositoryTemplate

    Use a template repository to create this resource. See Template Repositories below for details.

    topics string[]

    The list of topics of the repository.

    visibility string

    Can be public or private. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, visibility can also be internal. The visibility parameter overrides the private parameter.

    vulnerabilityAlerts boolean

    Set to true to enable security alerts for vulnerable dependencies. Enabling requires alerts to be enabled on the owner level. (Note for importing: GitHub enables the alerts on public repos but disables them on private repos by default.) See GitHub Documentation for details. Note that vulnerability alerts have not been successfully tested on any GitHub Enterprise instance and may be unavailable in those settings.

    allow_auto_merge bool

    Set to true to allow auto-merging pull requests on the repository.

    allow_merge_commit bool

    Set to false to disable merge commits on the repository.

    allow_rebase_merge bool

    Set to false to disable rebase merges on the repository.

    allow_squash_merge bool

    Set to false to disable squash merges on the repository.

    allow_update_branch bool

    Set to true to always suggest updating pull request branches.

    archive_on_destroy bool

    Set to true to archive the repository instead of deleting on destroy.

    archived bool

    Specifies if the repository should be archived. Defaults to false. NOTE Currently, the API does not support unarchiving.

    auto_init bool

    Set to true to produce an initial commit in the repository.

    default_branch str

    (Deprecated: Use github.BranchDefault resource instead) The name of the default branch of the repository. NOTE: This can only be set after a repository has already been created, and after a correct reference has been created for the target branch inside the repository. This means a user will have to omit this parameter from the initial repository creation and create the target branch inside of the repository prior to setting this attribute.

    Deprecated:

    Use the github_branch_default resource instead

    delete_branch_on_merge bool

    Automatically delete head branch after a pull request is merged. Defaults to false.

    description str

    A description of the repository.

    gitignore_template str

    Use the name of the template without the extension. For example, "Haskell".

    has_discussions bool

    Set to true to enable GitHub Discussions on the repository. Defaults to false.

    has_downloads bool

    Set to true to enable the (deprecated) downloads features on the repository.

    has_issues bool

    Set to true to enable the GitHub Issues features on the repository.

    has_projects bool

    Set to true to enable the GitHub Projects features on the repository. Per the GitHub documentation when in an organization that has disabled repository projects it will default to false and will otherwise default to true. If you specify true when it has been disabled it will return an error.

    has_wiki bool

    Set to true to enable the GitHub Wiki features on the repository.

    homepage_url str

    URL of a page describing the project.

    ignore_vulnerability_alerts_during_read bool

    Set to true to not call the vulnerability alerts endpoint so the resource can also be used without admin permissions during read.

    is_template bool

    Set to true to tell GitHub that this is a template repository.

    license_template str

    Use the name of the template without the extension. For example, "mit" or "mpl-2.0".

    merge_commit_message str

    Can be PR_BODY, PR_TITLE, or BLANK for a default merge commit message. Applicable only if allow_merge_commit is true.

    merge_commit_title str

    Can be PR_TITLE or MERGE_MESSAGE for a default merge commit title. Applicable only if allow_merge_commit is true.

    name str

    The name of the repository.

    pages RepositoryPagesArgs

    The repository's GitHub Pages configuration. See GitHub Pages Configuration below for details.

    private bool

    Set to true to create a private repository. Repositories are created as public (e.g. open source) by default.

    Deprecated:

    use visibility instead

    security_and_analysis RepositorySecurityAndAnalysisArgs

    The repository's security and analysis configuration. See Security and Analysis Configuration below for details.

    squash_merge_commit_message str

    Can be PR_BODY, COMMIT_MESSAGES, or BLANK for a default squash merge commit message. Applicable only if allow_squash_merge is true.

    squash_merge_commit_title str

    Can be PR_TITLE or COMMIT_OR_PR_TITLE for a default squash merge commit title. Applicable only if allow_squash_merge is true.

    template RepositoryTemplateArgs

    Use a template repository to create this resource. See Template Repositories below for details.

    topics Sequence[str]

    The list of topics of the repository.

    visibility str

    Can be public or private. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, visibility can also be internal. The visibility parameter overrides the private parameter.

    vulnerability_alerts bool

    Set to true to enable security alerts for vulnerable dependencies. Enabling requires alerts to be enabled on the owner level. (Note for importing: GitHub enables the alerts on public repos but disables them on private repos by default.) See GitHub Documentation for details. Note that vulnerability alerts have not been successfully tested on any GitHub Enterprise instance and may be unavailable in those settings.

    allowAutoMerge Boolean

    Set to true to allow auto-merging pull requests on the repository.

    allowMergeCommit Boolean

    Set to false to disable merge commits on the repository.

    allowRebaseMerge Boolean

    Set to false to disable rebase merges on the repository.

    allowSquashMerge Boolean

    Set to false to disable squash merges on the repository.

    allowUpdateBranch Boolean

    Set to true to always suggest updating pull request branches.

    archiveOnDestroy Boolean

    Set to true to archive the repository instead of deleting on destroy.

    archived Boolean

    Specifies if the repository should be archived. Defaults to false. NOTE Currently, the API does not support unarchiving.

    autoInit Boolean

    Set to true to produce an initial commit in the repository.

    defaultBranch String

    (Deprecated: Use github.BranchDefault resource instead) The name of the default branch of the repository. NOTE: This can only be set after a repository has already been created, and after a correct reference has been created for the target branch inside the repository. This means a user will have to omit this parameter from the initial repository creation and create the target branch inside of the repository prior to setting this attribute.

    Deprecated:

    Use the github_branch_default resource instead

    deleteBranchOnMerge Boolean

    Automatically delete head branch after a pull request is merged. Defaults to false.

    description String

    A description of the repository.

    gitignoreTemplate String

    Use the name of the template without the extension. For example, "Haskell".

    hasDiscussions Boolean

    Set to true to enable GitHub Discussions on the repository. Defaults to false.

    hasDownloads Boolean

    Set to true to enable the (deprecated) downloads features on the repository.

    hasIssues Boolean

    Set to true to enable the GitHub Issues features on the repository.

    hasProjects Boolean

    Set to true to enable the GitHub Projects features on the repository. Per the GitHub documentation when in an organization that has disabled repository projects it will default to false and will otherwise default to true. If you specify true when it has been disabled it will return an error.

    hasWiki Boolean

    Set to true to enable the GitHub Wiki features on the repository.

    homepageUrl String

    URL of a page describing the project.

    ignoreVulnerabilityAlertsDuringRead Boolean

    Set to true to not call the vulnerability alerts endpoint so the resource can also be used without admin permissions during read.

    isTemplate Boolean

    Set to true to tell GitHub that this is a template repository.

    licenseTemplate String

    Use the name of the template without the extension. For example, "mit" or "mpl-2.0".

    mergeCommitMessage String

    Can be PR_BODY, PR_TITLE, or BLANK for a default merge commit message. Applicable only if allow_merge_commit is true.

    mergeCommitTitle String

    Can be PR_TITLE or MERGE_MESSAGE for a default merge commit title. Applicable only if allow_merge_commit is true.

    name String

    The name of the repository.

    pages Property Map

    The repository's GitHub Pages configuration. See GitHub Pages Configuration below for details.

    private Boolean

    Set to true to create a private repository. Repositories are created as public (e.g. open source) by default.

    Deprecated:

    use visibility instead

    securityAndAnalysis Property Map

    The repository's security and analysis configuration. See Security and Analysis Configuration below for details.

    squashMergeCommitMessage String

    Can be PR_BODY, COMMIT_MESSAGES, or BLANK for a default squash merge commit message. Applicable only if allow_squash_merge is true.

    squashMergeCommitTitle String

    Can be PR_TITLE or COMMIT_OR_PR_TITLE for a default squash merge commit title. Applicable only if allow_squash_merge is true.

    template Property Map

    Use a template repository to create this resource. See Template Repositories below for details.

    topics List<String>

    The list of topics of the repository.

    visibility String

    Can be public or private. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, visibility can also be internal. The visibility parameter overrides the private parameter.

    vulnerabilityAlerts Boolean

    Set to true to enable security alerts for vulnerable dependencies. Enabling requires alerts to be enabled on the owner level. (Note for importing: GitHub enables the alerts on public repos but disables them on private repos by default.) See GitHub Documentation for details. Note that vulnerability alerts have not been successfully tested on any GitHub Enterprise instance and may be unavailable in those settings.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Repository resource produces the following output properties:

    Etag string
    FullName string

    A string of the form "orgname/reponame".

    GitCloneUrl string

    URL that can be provided to git clone to clone the repository anonymously via the git protocol.

    HtmlUrl string

    The absolute URL (including scheme) of the rendered GitHub Pages site e.g. https://username.github.io.

    HttpCloneUrl string

    URL that can be provided to git clone to clone the repository via HTTPS.

    Id string

    The provider-assigned unique ID for this managed resource.

    NodeId string

    GraphQL global node id for use with v4 API

    PrimaryLanguage string

    The primary language used in the repository.

    RepoId int

    GitHub ID for the repository

    SshCloneUrl string

    URL that can be provided to git clone to clone the repository via SSH.

    SvnUrl string

    URL that can be provided to svn checkout to check out the repository via GitHub's Subversion protocol emulation.

    Etag string
    FullName string

    A string of the form "orgname/reponame".

    GitCloneUrl string

    URL that can be provided to git clone to clone the repository anonymously via the git protocol.

    HtmlUrl string

    The absolute URL (including scheme) of the rendered GitHub Pages site e.g. https://username.github.io.

    HttpCloneUrl string

    URL that can be provided to git clone to clone the repository via HTTPS.

    Id string

    The provider-assigned unique ID for this managed resource.

    NodeId string

    GraphQL global node id for use with v4 API

    PrimaryLanguage string

    The primary language used in the repository.

    RepoId int

    GitHub ID for the repository

    SshCloneUrl string

    URL that can be provided to git clone to clone the repository via SSH.

    SvnUrl string

    URL that can be provided to svn checkout to check out the repository via GitHub's Subversion protocol emulation.

    etag String
    fullName String

    A string of the form "orgname/reponame".

    gitCloneUrl String

    URL that can be provided to git clone to clone the repository anonymously via the git protocol.

    htmlUrl String

    The absolute URL (including scheme) of the rendered GitHub Pages site e.g. https://username.github.io.

    httpCloneUrl String

    URL that can be provided to git clone to clone the repository via HTTPS.

    id String

    The provider-assigned unique ID for this managed resource.

    nodeId String

    GraphQL global node id for use with v4 API

    primaryLanguage String

    The primary language used in the repository.

    repoId Integer

    GitHub ID for the repository

    sshCloneUrl String

    URL that can be provided to git clone to clone the repository via SSH.

    svnUrl String

    URL that can be provided to svn checkout to check out the repository via GitHub's Subversion protocol emulation.

    etag string
    fullName string

    A string of the form "orgname/reponame".

    gitCloneUrl string

    URL that can be provided to git clone to clone the repository anonymously via the git protocol.

    htmlUrl string

    The absolute URL (including scheme) of the rendered GitHub Pages site e.g. https://username.github.io.

    httpCloneUrl string

    URL that can be provided to git clone to clone the repository via HTTPS.

    id string

    The provider-assigned unique ID for this managed resource.

    nodeId string

    GraphQL global node id for use with v4 API

    primaryLanguage string

    The primary language used in the repository.

    repoId number

    GitHub ID for the repository

    sshCloneUrl string

    URL that can be provided to git clone to clone the repository via SSH.

    svnUrl string

    URL that can be provided to svn checkout to check out the repository via GitHub's Subversion protocol emulation.

    etag str
    full_name str

    A string of the form "orgname/reponame".

    git_clone_url str

    URL that can be provided to git clone to clone the repository anonymously via the git protocol.

    html_url str

    The absolute URL (including scheme) of the rendered GitHub Pages site e.g. https://username.github.io.

    http_clone_url str

    URL that can be provided to git clone to clone the repository via HTTPS.

    id str

    The provider-assigned unique ID for this managed resource.

    node_id str

    GraphQL global node id for use with v4 API

    primary_language str

    The primary language used in the repository.

    repo_id int

    GitHub ID for the repository

    ssh_clone_url str

    URL that can be provided to git clone to clone the repository via SSH.

    svn_url str

    URL that can be provided to svn checkout to check out the repository via GitHub's Subversion protocol emulation.

    etag String
    fullName String

    A string of the form "orgname/reponame".

    gitCloneUrl String

    URL that can be provided to git clone to clone the repository anonymously via the git protocol.

    htmlUrl String

    The absolute URL (including scheme) of the rendered GitHub Pages site e.g. https://username.github.io.

    httpCloneUrl String

    URL that can be provided to git clone to clone the repository via HTTPS.

    id String

    The provider-assigned unique ID for this managed resource.

    nodeId String

    GraphQL global node id for use with v4 API

    primaryLanguage String

    The primary language used in the repository.

    repoId Number

    GitHub ID for the repository

    sshCloneUrl String

    URL that can be provided to git clone to clone the repository via SSH.

    svnUrl String

    URL that can be provided to svn checkout to check out the repository via GitHub's Subversion protocol emulation.

    Look up Existing Repository Resource

    Get an existing Repository resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: RepositoryState, opts?: CustomResourceOptions): Repository
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            allow_auto_merge: Optional[bool] = None,
            allow_merge_commit: Optional[bool] = None,
            allow_rebase_merge: Optional[bool] = None,
            allow_squash_merge: Optional[bool] = None,
            allow_update_branch: Optional[bool] = None,
            archive_on_destroy: Optional[bool] = None,
            archived: Optional[bool] = None,
            auto_init: Optional[bool] = None,
            default_branch: Optional[str] = None,
            delete_branch_on_merge: Optional[bool] = None,
            description: Optional[str] = None,
            etag: Optional[str] = None,
            full_name: Optional[str] = None,
            git_clone_url: Optional[str] = None,
            gitignore_template: Optional[str] = None,
            has_discussions: Optional[bool] = None,
            has_downloads: Optional[bool] = None,
            has_issues: Optional[bool] = None,
            has_projects: Optional[bool] = None,
            has_wiki: Optional[bool] = None,
            homepage_url: Optional[str] = None,
            html_url: Optional[str] = None,
            http_clone_url: Optional[str] = None,
            ignore_vulnerability_alerts_during_read: Optional[bool] = None,
            is_template: Optional[bool] = None,
            license_template: Optional[str] = None,
            merge_commit_message: Optional[str] = None,
            merge_commit_title: Optional[str] = None,
            name: Optional[str] = None,
            node_id: Optional[str] = None,
            pages: Optional[RepositoryPagesArgs] = None,
            primary_language: Optional[str] = None,
            private: Optional[bool] = None,
            repo_id: Optional[int] = None,
            security_and_analysis: Optional[RepositorySecurityAndAnalysisArgs] = None,
            squash_merge_commit_message: Optional[str] = None,
            squash_merge_commit_title: Optional[str] = None,
            ssh_clone_url: Optional[str] = None,
            svn_url: Optional[str] = None,
            template: Optional[RepositoryTemplateArgs] = None,
            topics: Optional[Sequence[str]] = None,
            visibility: Optional[str] = None,
            vulnerability_alerts: Optional[bool] = None) -> Repository
    func GetRepository(ctx *Context, name string, id IDInput, state *RepositoryState, opts ...ResourceOption) (*Repository, error)
    public static Repository Get(string name, Input<string> id, RepositoryState? state, CustomResourceOptions? opts = null)
    public static Repository get(String name, Output<String> id, RepositoryState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AllowAutoMerge bool

    Set to true to allow auto-merging pull requests on the repository.

    AllowMergeCommit bool

    Set to false to disable merge commits on the repository.

    AllowRebaseMerge bool

    Set to false to disable rebase merges on the repository.

    AllowSquashMerge bool

    Set to false to disable squash merges on the repository.

    AllowUpdateBranch bool

    Set to true to always suggest updating pull request branches.

    ArchiveOnDestroy bool

    Set to true to archive the repository instead of deleting on destroy.

    Archived bool

    Specifies if the repository should be archived. Defaults to false. NOTE Currently, the API does not support unarchiving.

    AutoInit bool

    Set to true to produce an initial commit in the repository.

    DefaultBranch string

    (Deprecated: Use github.BranchDefault resource instead) The name of the default branch of the repository. NOTE: This can only be set after a repository has already been created, and after a correct reference has been created for the target branch inside the repository. This means a user will have to omit this parameter from the initial repository creation and create the target branch inside of the repository prior to setting this attribute.

    Deprecated:

    Use the github_branch_default resource instead

    DeleteBranchOnMerge bool

    Automatically delete head branch after a pull request is merged. Defaults to false.

    Description string

    A description of the repository.

    Etag string
    FullName string

    A string of the form "orgname/reponame".

    GitCloneUrl string

    URL that can be provided to git clone to clone the repository anonymously via the git protocol.

    GitignoreTemplate string

    Use the name of the template without the extension. For example, "Haskell".

    HasDiscussions bool

    Set to true to enable GitHub Discussions on the repository. Defaults to false.

    HasDownloads bool

    Set to true to enable the (deprecated) downloads features on the repository.

    HasIssues bool

    Set to true to enable the GitHub Issues features on the repository.

    HasProjects bool

    Set to true to enable the GitHub Projects features on the repository. Per the GitHub documentation when in an organization that has disabled repository projects it will default to false and will otherwise default to true. If you specify true when it has been disabled it will return an error.

    HasWiki bool

    Set to true to enable the GitHub Wiki features on the repository.

    HomepageUrl string

    URL of a page describing the project.

    HtmlUrl string

    The absolute URL (including scheme) of the rendered GitHub Pages site e.g. https://username.github.io.

    HttpCloneUrl string

    URL that can be provided to git clone to clone the repository via HTTPS.

    IgnoreVulnerabilityAlertsDuringRead bool

    Set to true to not call the vulnerability alerts endpoint so the resource can also be used without admin permissions during read.

    IsTemplate bool

    Set to true to tell GitHub that this is a template repository.

    LicenseTemplate string

    Use the name of the template without the extension. For example, "mit" or "mpl-2.0".

    MergeCommitMessage string

    Can be PR_BODY, PR_TITLE, or BLANK for a default merge commit message. Applicable only if allow_merge_commit is true.

    MergeCommitTitle string

    Can be PR_TITLE or MERGE_MESSAGE for a default merge commit title. Applicable only if allow_merge_commit is true.

    Name string

    The name of the repository.

    NodeId string

    GraphQL global node id for use with v4 API

    Pages RepositoryPages

    The repository's GitHub Pages configuration. See GitHub Pages Configuration below for details.

    PrimaryLanguage string

    The primary language used in the repository.

    Private bool

    Set to true to create a private repository. Repositories are created as public (e.g. open source) by default.

    Deprecated:

    use visibility instead

    RepoId int

    GitHub ID for the repository

    SecurityAndAnalysis RepositorySecurityAndAnalysis

    The repository's security and analysis configuration. See Security and Analysis Configuration below for details.

    SquashMergeCommitMessage string

    Can be PR_BODY, COMMIT_MESSAGES, or BLANK for a default squash merge commit message. Applicable only if allow_squash_merge is true.

    SquashMergeCommitTitle string

    Can be PR_TITLE or COMMIT_OR_PR_TITLE for a default squash merge commit title. Applicable only if allow_squash_merge is true.

    SshCloneUrl string

    URL that can be provided to git clone to clone the repository via SSH.

    SvnUrl string

    URL that can be provided to svn checkout to check out the repository via GitHub's Subversion protocol emulation.

    Template RepositoryTemplate

    Use a template repository to create this resource. See Template Repositories below for details.

    Topics List<string>

    The list of topics of the repository.

    Visibility string

    Can be public or private. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, visibility can also be internal. The visibility parameter overrides the private parameter.

    VulnerabilityAlerts bool

    Set to true to enable security alerts for vulnerable dependencies. Enabling requires alerts to be enabled on the owner level. (Note for importing: GitHub enables the alerts on public repos but disables them on private repos by default.) See GitHub Documentation for details. Note that vulnerability alerts have not been successfully tested on any GitHub Enterprise instance and may be unavailable in those settings.

    AllowAutoMerge bool

    Set to true to allow auto-merging pull requests on the repository.

    AllowMergeCommit bool

    Set to false to disable merge commits on the repository.

    AllowRebaseMerge bool

    Set to false to disable rebase merges on the repository.

    AllowSquashMerge bool

    Set to false to disable squash merges on the repository.

    AllowUpdateBranch bool

    Set to true to always suggest updating pull request branches.

    ArchiveOnDestroy bool

    Set to true to archive the repository instead of deleting on destroy.

    Archived bool

    Specifies if the repository should be archived. Defaults to false. NOTE Currently, the API does not support unarchiving.

    AutoInit bool

    Set to true to produce an initial commit in the repository.

    DefaultBranch string

    (Deprecated: Use github.BranchDefault resource instead) The name of the default branch of the repository. NOTE: This can only be set after a repository has already been created, and after a correct reference has been created for the target branch inside the repository. This means a user will have to omit this parameter from the initial repository creation and create the target branch inside of the repository prior to setting this attribute.

    Deprecated:

    Use the github_branch_default resource instead

    DeleteBranchOnMerge bool

    Automatically delete head branch after a pull request is merged. Defaults to false.

    Description string

    A description of the repository.

    Etag string
    FullName string

    A string of the form "orgname/reponame".

    GitCloneUrl string

    URL that can be provided to git clone to clone the repository anonymously via the git protocol.

    GitignoreTemplate string

    Use the name of the template without the extension. For example, "Haskell".

    HasDiscussions bool

    Set to true to enable GitHub Discussions on the repository. Defaults to false.

    HasDownloads bool

    Set to true to enable the (deprecated) downloads features on the repository.

    HasIssues bool

    Set to true to enable the GitHub Issues features on the repository.

    HasProjects bool

    Set to true to enable the GitHub Projects features on the repository. Per the GitHub documentation when in an organization that has disabled repository projects it will default to false and will otherwise default to true. If you specify true when it has been disabled it will return an error.

    HasWiki bool

    Set to true to enable the GitHub Wiki features on the repository.

    HomepageUrl string

    URL of a page describing the project.

    HtmlUrl string

    The absolute URL (including scheme) of the rendered GitHub Pages site e.g. https://username.github.io.

    HttpCloneUrl string

    URL that can be provided to git clone to clone the repository via HTTPS.

    IgnoreVulnerabilityAlertsDuringRead bool

    Set to true to not call the vulnerability alerts endpoint so the resource can also be used without admin permissions during read.

    IsTemplate bool

    Set to true to tell GitHub that this is a template repository.

    LicenseTemplate string

    Use the name of the template without the extension. For example, "mit" or "mpl-2.0".

    MergeCommitMessage string

    Can be PR_BODY, PR_TITLE, or BLANK for a default merge commit message. Applicable only if allow_merge_commit is true.

    MergeCommitTitle string

    Can be PR_TITLE or MERGE_MESSAGE for a default merge commit title. Applicable only if allow_merge_commit is true.

    Name string

    The name of the repository.

    NodeId string

    GraphQL global node id for use with v4 API

    Pages RepositoryPagesArgs

    The repository's GitHub Pages configuration. See GitHub Pages Configuration below for details.

    PrimaryLanguage string

    The primary language used in the repository.

    Private bool

    Set to true to create a private repository. Repositories are created as public (e.g. open source) by default.

    Deprecated:

    use visibility instead

    RepoId int

    GitHub ID for the repository

    SecurityAndAnalysis RepositorySecurityAndAnalysisArgs

    The repository's security and analysis configuration. See Security and Analysis Configuration below for details.

    SquashMergeCommitMessage string

    Can be PR_BODY, COMMIT_MESSAGES, or BLANK for a default squash merge commit message. Applicable only if allow_squash_merge is true.

    SquashMergeCommitTitle string

    Can be PR_TITLE or COMMIT_OR_PR_TITLE for a default squash merge commit title. Applicable only if allow_squash_merge is true.

    SshCloneUrl string

    URL that can be provided to git clone to clone the repository via SSH.

    SvnUrl string

    URL that can be provided to svn checkout to check out the repository via GitHub's Subversion protocol emulation.

    Template RepositoryTemplateArgs

    Use a template repository to create this resource. See Template Repositories below for details.

    Topics []string

    The list of topics of the repository.

    Visibility string

    Can be public or private. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, visibility can also be internal. The visibility parameter overrides the private parameter.

    VulnerabilityAlerts bool

    Set to true to enable security alerts for vulnerable dependencies. Enabling requires alerts to be enabled on the owner level. (Note for importing: GitHub enables the alerts on public repos but disables them on private repos by default.) See GitHub Documentation for details. Note that vulnerability alerts have not been successfully tested on any GitHub Enterprise instance and may be unavailable in those settings.

    allowAutoMerge Boolean

    Set to true to allow auto-merging pull requests on the repository.

    allowMergeCommit Boolean

    Set to false to disable merge commits on the repository.

    allowRebaseMerge Boolean

    Set to false to disable rebase merges on the repository.

    allowSquashMerge Boolean

    Set to false to disable squash merges on the repository.

    allowUpdateBranch Boolean

    Set to true to always suggest updating pull request branches.

    archiveOnDestroy Boolean

    Set to true to archive the repository instead of deleting on destroy.

    archived Boolean

    Specifies if the repository should be archived. Defaults to false. NOTE Currently, the API does not support unarchiving.

    autoInit Boolean

    Set to true to produce an initial commit in the repository.

    defaultBranch String

    (Deprecated: Use github.BranchDefault resource instead) The name of the default branch of the repository. NOTE: This can only be set after a repository has already been created, and after a correct reference has been created for the target branch inside the repository. This means a user will have to omit this parameter from the initial repository creation and create the target branch inside of the repository prior to setting this attribute.

    Deprecated:

    Use the github_branch_default resource instead

    deleteBranchOnMerge Boolean

    Automatically delete head branch after a pull request is merged. Defaults to false.

    description String

    A description of the repository.

    etag String
    fullName String

    A string of the form "orgname/reponame".

    gitCloneUrl String

    URL that can be provided to git clone to clone the repository anonymously via the git protocol.

    gitignoreTemplate String

    Use the name of the template without the extension. For example, "Haskell".

    hasDiscussions Boolean

    Set to true to enable GitHub Discussions on the repository. Defaults to false.

    hasDownloads Boolean

    Set to true to enable the (deprecated) downloads features on the repository.

    hasIssues Boolean

    Set to true to enable the GitHub Issues features on the repository.

    hasProjects Boolean

    Set to true to enable the GitHub Projects features on the repository. Per the GitHub documentation when in an organization that has disabled repository projects it will default to false and will otherwise default to true. If you specify true when it has been disabled it will return an error.

    hasWiki Boolean

    Set to true to enable the GitHub Wiki features on the repository.

    homepageUrl String

    URL of a page describing the project.

    htmlUrl String

    The absolute URL (including scheme) of the rendered GitHub Pages site e.g. https://username.github.io.

    httpCloneUrl String

    URL that can be provided to git clone to clone the repository via HTTPS.

    ignoreVulnerabilityAlertsDuringRead Boolean

    Set to true to not call the vulnerability alerts endpoint so the resource can also be used without admin permissions during read.

    isTemplate Boolean

    Set to true to tell GitHub that this is a template repository.

    licenseTemplate String

    Use the name of the template without the extension. For example, "mit" or "mpl-2.0".

    mergeCommitMessage String

    Can be PR_BODY, PR_TITLE, or BLANK for a default merge commit message. Applicable only if allow_merge_commit is true.

    mergeCommitTitle String

    Can be PR_TITLE or MERGE_MESSAGE for a default merge commit title. Applicable only if allow_merge_commit is true.

    name String

    The name of the repository.

    nodeId String

    GraphQL global node id for use with v4 API

    pages RepositoryPages

    The repository's GitHub Pages configuration. See GitHub Pages Configuration below for details.

    primaryLanguage String

    The primary language used in the repository.

    private_ Boolean

    Set to true to create a private repository. Repositories are created as public (e.g. open source) by default.

    Deprecated:

    use visibility instead

    repoId Integer

    GitHub ID for the repository

    securityAndAnalysis RepositorySecurityAndAnalysis

    The repository's security and analysis configuration. See Security and Analysis Configuration below for details.

    squashMergeCommitMessage String

    Can be PR_BODY, COMMIT_MESSAGES, or BLANK for a default squash merge commit message. Applicable only if allow_squash_merge is true.

    squashMergeCommitTitle String

    Can be PR_TITLE or COMMIT_OR_PR_TITLE for a default squash merge commit title. Applicable only if allow_squash_merge is true.

    sshCloneUrl String

    URL that can be provided to git clone to clone the repository via SSH.

    svnUrl String

    URL that can be provided to svn checkout to check out the repository via GitHub's Subversion protocol emulation.

    template RepositoryTemplate

    Use a template repository to create this resource. See Template Repositories below for details.

    topics List<String>

    The list of topics of the repository.

    visibility String

    Can be public or private. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, visibility can also be internal. The visibility parameter overrides the private parameter.

    vulnerabilityAlerts Boolean

    Set to true to enable security alerts for vulnerable dependencies. Enabling requires alerts to be enabled on the owner level. (Note for importing: GitHub enables the alerts on public repos but disables them on private repos by default.) See GitHub Documentation for details. Note that vulnerability alerts have not been successfully tested on any GitHub Enterprise instance and may be unavailable in those settings.

    allowAutoMerge boolean

    Set to true to allow auto-merging pull requests on the repository.

    allowMergeCommit boolean

    Set to false to disable merge commits on the repository.

    allowRebaseMerge boolean

    Set to false to disable rebase merges on the repository.

    allowSquashMerge boolean

    Set to false to disable squash merges on the repository.

    allowUpdateBranch boolean

    Set to true to always suggest updating pull request branches.

    archiveOnDestroy boolean

    Set to true to archive the repository instead of deleting on destroy.

    archived boolean

    Specifies if the repository should be archived. Defaults to false. NOTE Currently, the API does not support unarchiving.

    autoInit boolean

    Set to true to produce an initial commit in the repository.

    defaultBranch string

    (Deprecated: Use github.BranchDefault resource instead) The name of the default branch of the repository. NOTE: This can only be set after a repository has already been created, and after a correct reference has been created for the target branch inside the repository. This means a user will have to omit this parameter from the initial repository creation and create the target branch inside of the repository prior to setting this attribute.

    Deprecated:

    Use the github_branch_default resource instead

    deleteBranchOnMerge boolean

    Automatically delete head branch after a pull request is merged. Defaults to false.

    description string

    A description of the repository.

    etag string
    fullName string

    A string of the form "orgname/reponame".

    gitCloneUrl string

    URL that can be provided to git clone to clone the repository anonymously via the git protocol.

    gitignoreTemplate string

    Use the name of the template without the extension. For example, "Haskell".

    hasDiscussions boolean

    Set to true to enable GitHub Discussions on the repository. Defaults to false.

    hasDownloads boolean

    Set to true to enable the (deprecated) downloads features on the repository.

    hasIssues boolean

    Set to true to enable the GitHub Issues features on the repository.

    hasProjects boolean

    Set to true to enable the GitHub Projects features on the repository. Per the GitHub documentation when in an organization that has disabled repository projects it will default to false and will otherwise default to true. If you specify true when it has been disabled it will return an error.

    hasWiki boolean

    Set to true to enable the GitHub Wiki features on the repository.

    homepageUrl string

    URL of a page describing the project.

    htmlUrl string

    The absolute URL (including scheme) of the rendered GitHub Pages site e.g. https://username.github.io.

    httpCloneUrl string

    URL that can be provided to git clone to clone the repository via HTTPS.

    ignoreVulnerabilityAlertsDuringRead boolean

    Set to true to not call the vulnerability alerts endpoint so the resource can also be used without admin permissions during read.

    isTemplate boolean

    Set to true to tell GitHub that this is a template repository.

    licenseTemplate string

    Use the name of the template without the extension. For example, "mit" or "mpl-2.0".

    mergeCommitMessage string

    Can be PR_BODY, PR_TITLE, or BLANK for a default merge commit message. Applicable only if allow_merge_commit is true.

    mergeCommitTitle string

    Can be PR_TITLE or MERGE_MESSAGE for a default merge commit title. Applicable only if allow_merge_commit is true.

    name string

    The name of the repository.

    nodeId string

    GraphQL global node id for use with v4 API

    pages RepositoryPages

    The repository's GitHub Pages configuration. See GitHub Pages Configuration below for details.

    primaryLanguage string

    The primary language used in the repository.

    private boolean

    Set to true to create a private repository. Repositories are created as public (e.g. open source) by default.

    Deprecated:

    use visibility instead

    repoId number

    GitHub ID for the repository

    securityAndAnalysis RepositorySecurityAndAnalysis

    The repository's security and analysis configuration. See Security and Analysis Configuration below for details.

    squashMergeCommitMessage string

    Can be PR_BODY, COMMIT_MESSAGES, or BLANK for a default squash merge commit message. Applicable only if allow_squash_merge is true.

    squashMergeCommitTitle string

    Can be PR_TITLE or COMMIT_OR_PR_TITLE for a default squash merge commit title. Applicable only if allow_squash_merge is true.

    sshCloneUrl string

    URL that can be provided to git clone to clone the repository via SSH.

    svnUrl string

    URL that can be provided to svn checkout to check out the repository via GitHub's Subversion protocol emulation.

    template RepositoryTemplate

    Use a template repository to create this resource. See Template Repositories below for details.

    topics string[]

    The list of topics of the repository.

    visibility string

    Can be public or private. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, visibility can also be internal. The visibility parameter overrides the private parameter.

    vulnerabilityAlerts boolean

    Set to true to enable security alerts for vulnerable dependencies. Enabling requires alerts to be enabled on the owner level. (Note for importing: GitHub enables the alerts on public repos but disables them on private repos by default.) See GitHub Documentation for details. Note that vulnerability alerts have not been successfully tested on any GitHub Enterprise instance and may be unavailable in those settings.

    allow_auto_merge bool

    Set to true to allow auto-merging pull requests on the repository.

    allow_merge_commit bool

    Set to false to disable merge commits on the repository.

    allow_rebase_merge bool

    Set to false to disable rebase merges on the repository.

    allow_squash_merge bool

    Set to false to disable squash merges on the repository.

    allow_update_branch bool

    Set to true to always suggest updating pull request branches.

    archive_on_destroy bool

    Set to true to archive the repository instead of deleting on destroy.

    archived bool

    Specifies if the repository should be archived. Defaults to false. NOTE Currently, the API does not support unarchiving.

    auto_init bool

    Set to true to produce an initial commit in the repository.

    default_branch str

    (Deprecated: Use github.BranchDefault resource instead) The name of the default branch of the repository. NOTE: This can only be set after a repository has already been created, and after a correct reference has been created for the target branch inside the repository. This means a user will have to omit this parameter from the initial repository creation and create the target branch inside of the repository prior to setting this attribute.

    Deprecated:

    Use the github_branch_default resource instead

    delete_branch_on_merge bool

    Automatically delete head branch after a pull request is merged. Defaults to false.

    description str

    A description of the repository.

    etag str
    full_name str

    A string of the form "orgname/reponame".

    git_clone_url str

    URL that can be provided to git clone to clone the repository anonymously via the git protocol.

    gitignore_template str

    Use the name of the template without the extension. For example, "Haskell".

    has_discussions bool

    Set to true to enable GitHub Discussions on the repository. Defaults to false.

    has_downloads bool

    Set to true to enable the (deprecated) downloads features on the repository.

    has_issues bool

    Set to true to enable the GitHub Issues features on the repository.

    has_projects bool

    Set to true to enable the GitHub Projects features on the repository. Per the GitHub documentation when in an organization that has disabled repository projects it will default to false and will otherwise default to true. If you specify true when it has been disabled it will return an error.

    has_wiki bool

    Set to true to enable the GitHub Wiki features on the repository.

    homepage_url str

    URL of a page describing the project.

    html_url str

    The absolute URL (including scheme) of the rendered GitHub Pages site e.g. https://username.github.io.

    http_clone_url str

    URL that can be provided to git clone to clone the repository via HTTPS.

    ignore_vulnerability_alerts_during_read bool

    Set to true to not call the vulnerability alerts endpoint so the resource can also be used without admin permissions during read.

    is_template bool

    Set to true to tell GitHub that this is a template repository.

    license_template str

    Use the name of the template without the extension. For example, "mit" or "mpl-2.0".

    merge_commit_message str

    Can be PR_BODY, PR_TITLE, or BLANK for a default merge commit message. Applicable only if allow_merge_commit is true.

    merge_commit_title str

    Can be PR_TITLE or MERGE_MESSAGE for a default merge commit title. Applicable only if allow_merge_commit is true.

    name str

    The name of the repository.

    node_id str

    GraphQL global node id for use with v4 API

    pages RepositoryPagesArgs

    The repository's GitHub Pages configuration. See GitHub Pages Configuration below for details.

    primary_language str

    The primary language used in the repository.

    private bool

    Set to true to create a private repository. Repositories are created as public (e.g. open source) by default.

    Deprecated:

    use visibility instead

    repo_id int

    GitHub ID for the repository

    security_and_analysis RepositorySecurityAndAnalysisArgs

    The repository's security and analysis configuration. See Security and Analysis Configuration below for details.

    squash_merge_commit_message str

    Can be PR_BODY, COMMIT_MESSAGES, or BLANK for a default squash merge commit message. Applicable only if allow_squash_merge is true.

    squash_merge_commit_title str

    Can be PR_TITLE or COMMIT_OR_PR_TITLE for a default squash merge commit title. Applicable only if allow_squash_merge is true.

    ssh_clone_url str

    URL that can be provided to git clone to clone the repository via SSH.

    svn_url str

    URL that can be provided to svn checkout to check out the repository via GitHub's Subversion protocol emulation.

    template RepositoryTemplateArgs

    Use a template repository to create this resource. See Template Repositories below for details.

    topics Sequence[str]

    The list of topics of the repository.

    visibility str

    Can be public or private. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, visibility can also be internal. The visibility parameter overrides the private parameter.

    vulnerability_alerts bool

    Set to true to enable security alerts for vulnerable dependencies. Enabling requires alerts to be enabled on the owner level. (Note for importing: GitHub enables the alerts on public repos but disables them on private repos by default.) See GitHub Documentation for details. Note that vulnerability alerts have not been successfully tested on any GitHub Enterprise instance and may be unavailable in those settings.

    allowAutoMerge Boolean

    Set to true to allow auto-merging pull requests on the repository.

    allowMergeCommit Boolean

    Set to false to disable merge commits on the repository.

    allowRebaseMerge Boolean

    Set to false to disable rebase merges on the repository.

    allowSquashMerge Boolean

    Set to false to disable squash merges on the repository.

    allowUpdateBranch Boolean

    Set to true to always suggest updating pull request branches.

    archiveOnDestroy Boolean

    Set to true to archive the repository instead of deleting on destroy.

    archived Boolean

    Specifies if the repository should be archived. Defaults to false. NOTE Currently, the API does not support unarchiving.

    autoInit Boolean

    Set to true to produce an initial commit in the repository.

    defaultBranch String

    (Deprecated: Use github.BranchDefault resource instead) The name of the default branch of the repository. NOTE: This can only be set after a repository has already been created, and after a correct reference has been created for the target branch inside the repository. This means a user will have to omit this parameter from the initial repository creation and create the target branch inside of the repository prior to setting this attribute.

    Deprecated:

    Use the github_branch_default resource instead

    deleteBranchOnMerge Boolean

    Automatically delete head branch after a pull request is merged. Defaults to false.

    description String

    A description of the repository.

    etag String
    fullName String

    A string of the form "orgname/reponame".

    gitCloneUrl String

    URL that can be provided to git clone to clone the repository anonymously via the git protocol.

    gitignoreTemplate String

    Use the name of the template without the extension. For example, "Haskell".

    hasDiscussions Boolean

    Set to true to enable GitHub Discussions on the repository. Defaults to false.

    hasDownloads Boolean

    Set to true to enable the (deprecated) downloads features on the repository.

    hasIssues Boolean

    Set to true to enable the GitHub Issues features on the repository.

    hasProjects Boolean

    Set to true to enable the GitHub Projects features on the repository. Per the GitHub documentation when in an organization that has disabled repository projects it will default to false and will otherwise default to true. If you specify true when it has been disabled it will return an error.

    hasWiki Boolean

    Set to true to enable the GitHub Wiki features on the repository.

    homepageUrl String

    URL of a page describing the project.

    htmlUrl String

    The absolute URL (including scheme) of the rendered GitHub Pages site e.g. https://username.github.io.

    httpCloneUrl String

    URL that can be provided to git clone to clone the repository via HTTPS.

    ignoreVulnerabilityAlertsDuringRead Boolean

    Set to true to not call the vulnerability alerts endpoint so the resource can also be used without admin permissions during read.

    isTemplate Boolean

    Set to true to tell GitHub that this is a template repository.

    licenseTemplate String

    Use the name of the template without the extension. For example, "mit" or "mpl-2.0".

    mergeCommitMessage String

    Can be PR_BODY, PR_TITLE, or BLANK for a default merge commit message. Applicable only if allow_merge_commit is true.

    mergeCommitTitle String

    Can be PR_TITLE or MERGE_MESSAGE for a default merge commit title. Applicable only if allow_merge_commit is true.

    name String

    The name of the repository.

    nodeId String

    GraphQL global node id for use with v4 API

    pages Property Map

    The repository's GitHub Pages configuration. See GitHub Pages Configuration below for details.

    primaryLanguage String

    The primary language used in the repository.

    private Boolean

    Set to true to create a private repository. Repositories are created as public (e.g. open source) by default.

    Deprecated:

    use visibility instead

    repoId Number

    GitHub ID for the repository

    securityAndAnalysis Property Map

    The repository's security and analysis configuration. See Security and Analysis Configuration below for details.

    squashMergeCommitMessage String

    Can be PR_BODY, COMMIT_MESSAGES, or BLANK for a default squash merge commit message. Applicable only if allow_squash_merge is true.

    squashMergeCommitTitle String

    Can be PR_TITLE or COMMIT_OR_PR_TITLE for a default squash merge commit title. Applicable only if allow_squash_merge is true.

    sshCloneUrl String

    URL that can be provided to git clone to clone the repository via SSH.

    svnUrl String

    URL that can be provided to svn checkout to check out the repository via GitHub's Subversion protocol emulation.

    template Property Map

    Use a template repository to create this resource. See Template Repositories below for details.

    topics List<String>

    The list of topics of the repository.

    visibility String

    Can be public or private. If your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+, visibility can also be internal. The visibility parameter overrides the private parameter.

    vulnerabilityAlerts Boolean

    Set to true to enable security alerts for vulnerable dependencies. Enabling requires alerts to be enabled on the owner level. (Note for importing: GitHub enables the alerts on public repos but disables them on private repos by default.) See GitHub Documentation for details. Note that vulnerability alerts have not been successfully tested on any GitHub Enterprise instance and may be unavailable in those settings.

    Supporting Types

    RepositoryPages, RepositoryPagesArgs

    BuildType string

    The type of GitHub Pages site to build. Can be legacy or workflow. If you use legacy as build type you need to set the option source.

    Cname string

    The custom domain for the repository. This can only be set after the repository has been created.

    Custom404 bool

    Whether the rendered GitHub Pages site has a custom 404 page.

    HtmlUrl string

    The absolute URL (including scheme) of the rendered GitHub Pages site e.g. https://username.github.io.

    Source RepositoryPagesSource

    The source branch and directory for the rendered Pages site. See GitHub Pages Source below for details.

    Status string

    Set to enabled to enable advanced security features on the repository. Can be enabled or disabled.

    Url string
    BuildType string

    The type of GitHub Pages site to build. Can be legacy or workflow. If you use legacy as build type you need to set the option source.

    Cname string

    The custom domain for the repository. This can only be set after the repository has been created.

    Custom404 bool

    Whether the rendered GitHub Pages site has a custom 404 page.

    HtmlUrl string

    The absolute URL (including scheme) of the rendered GitHub Pages site e.g. https://username.github.io.

    Source RepositoryPagesSource

    The source branch and directory for the rendered Pages site. See GitHub Pages Source below for details.

    Status string

    Set to enabled to enable advanced security features on the repository. Can be enabled or disabled.

    Url string
    buildType String

    The type of GitHub Pages site to build. Can be legacy or workflow. If you use legacy as build type you need to set the option source.

    cname String

    The custom domain for the repository. This can only be set after the repository has been created.

    custom404 Boolean

    Whether the rendered GitHub Pages site has a custom 404 page.

    htmlUrl String

    The absolute URL (including scheme) of the rendered GitHub Pages site e.g. https://username.github.io.

    source RepositoryPagesSource

    The source branch and directory for the rendered Pages site. See GitHub Pages Source below for details.

    status String

    Set to enabled to enable advanced security features on the repository. Can be enabled or disabled.

    url String
    buildType string

    The type of GitHub Pages site to build. Can be legacy or workflow. If you use legacy as build type you need to set the option source.

    cname string

    The custom domain for the repository. This can only be set after the repository has been created.

    custom404 boolean

    Whether the rendered GitHub Pages site has a custom 404 page.

    htmlUrl string

    The absolute URL (including scheme) of the rendered GitHub Pages site e.g. https://username.github.io.

    source RepositoryPagesSource

    The source branch and directory for the rendered Pages site. See GitHub Pages Source below for details.

    status string

    Set to enabled to enable advanced security features on the repository. Can be enabled or disabled.

    url string
    build_type str

    The type of GitHub Pages site to build. Can be legacy or workflow. If you use legacy as build type you need to set the option source.

    cname str

    The custom domain for the repository. This can only be set after the repository has been created.

    custom404 bool

    Whether the rendered GitHub Pages site has a custom 404 page.

    html_url str

    The absolute URL (including scheme) of the rendered GitHub Pages site e.g. https://username.github.io.

    source RepositoryPagesSource

    The source branch and directory for the rendered Pages site. See GitHub Pages Source below for details.

    status str

    Set to enabled to enable advanced security features on the repository. Can be enabled or disabled.

    url str
    buildType String

    The type of GitHub Pages site to build. Can be legacy or workflow. If you use legacy as build type you need to set the option source.

    cname String

    The custom domain for the repository. This can only be set after the repository has been created.

    custom404 Boolean

    Whether the rendered GitHub Pages site has a custom 404 page.

    htmlUrl String

    The absolute URL (including scheme) of the rendered GitHub Pages site e.g. https://username.github.io.

    source Property Map

    The source branch and directory for the rendered Pages site. See GitHub Pages Source below for details.

    status String

    Set to enabled to enable advanced security features on the repository. Can be enabled or disabled.

    url String

    RepositoryPagesSource, RepositoryPagesSourceArgs

    Branch string

    The repository branch used to publish the site's source files. (i.e. main or gh-pages.

    Path string

    The repository directory from which the site publishes (Default: /).

    Branch string

    The repository branch used to publish the site's source files. (i.e. main or gh-pages.

    Path string

    The repository directory from which the site publishes (Default: /).

    branch String

    The repository branch used to publish the site's source files. (i.e. main or gh-pages.

    path String

    The repository directory from which the site publishes (Default: /).

    branch string

    The repository branch used to publish the site's source files. (i.e. main or gh-pages.

    path string

    The repository directory from which the site publishes (Default: /).

    branch str

    The repository branch used to publish the site's source files. (i.e. main or gh-pages.

    path str

    The repository directory from which the site publishes (Default: /).

    branch String

    The repository branch used to publish the site's source files. (i.e. main or gh-pages.

    path String

    The repository directory from which the site publishes (Default: /).

    RepositorySecurityAndAnalysis, RepositorySecurityAndAnalysisArgs

    AdvancedSecurity RepositorySecurityAndAnalysisAdvancedSecurity

    The advanced security configuration for the repository. See Advanced Security Configuration below for details. If a repository's visibility is public, advanced security is always enabled and cannot be changed, so this setting cannot be supplied.

    SecretScanning RepositorySecurityAndAnalysisSecretScanning

    The secret scanning configuration for the repository. See Secret Scanning Configuration below for details.

    SecretScanningPushProtection RepositorySecurityAndAnalysisSecretScanningPushProtection

    The secret scanning push protection configuration for the repository. See Secret Scanning Push Protection Configuration below for details.

    AdvancedSecurity RepositorySecurityAndAnalysisAdvancedSecurity

    The advanced security configuration for the repository. See Advanced Security Configuration below for details. If a repository's visibility is public, advanced security is always enabled and cannot be changed, so this setting cannot be supplied.

    SecretScanning RepositorySecurityAndAnalysisSecretScanning

    The secret scanning configuration for the repository. See Secret Scanning Configuration below for details.

    SecretScanningPushProtection RepositorySecurityAndAnalysisSecretScanningPushProtection

    The secret scanning push protection configuration for the repository. See Secret Scanning Push Protection Configuration below for details.

    advancedSecurity RepositorySecurityAndAnalysisAdvancedSecurity

    The advanced security configuration for the repository. See Advanced Security Configuration below for details. If a repository's visibility is public, advanced security is always enabled and cannot be changed, so this setting cannot be supplied.

    secretScanning RepositorySecurityAndAnalysisSecretScanning

    The secret scanning configuration for the repository. See Secret Scanning Configuration below for details.

    secretScanningPushProtection RepositorySecurityAndAnalysisSecretScanningPushProtection

    The secret scanning push protection configuration for the repository. See Secret Scanning Push Protection Configuration below for details.

    advancedSecurity RepositorySecurityAndAnalysisAdvancedSecurity

    The advanced security configuration for the repository. See Advanced Security Configuration below for details. If a repository's visibility is public, advanced security is always enabled and cannot be changed, so this setting cannot be supplied.

    secretScanning RepositorySecurityAndAnalysisSecretScanning

    The secret scanning configuration for the repository. See Secret Scanning Configuration below for details.

    secretScanningPushProtection RepositorySecurityAndAnalysisSecretScanningPushProtection

    The secret scanning push protection configuration for the repository. See Secret Scanning Push Protection Configuration below for details.

    advanced_security RepositorySecurityAndAnalysisAdvancedSecurity

    The advanced security configuration for the repository. See Advanced Security Configuration below for details. If a repository's visibility is public, advanced security is always enabled and cannot be changed, so this setting cannot be supplied.

    secret_scanning RepositorySecurityAndAnalysisSecretScanning

    The secret scanning configuration for the repository. See Secret Scanning Configuration below for details.

    secret_scanning_push_protection RepositorySecurityAndAnalysisSecretScanningPushProtection

    The secret scanning push protection configuration for the repository. See Secret Scanning Push Protection Configuration below for details.

    advancedSecurity Property Map

    The advanced security configuration for the repository. See Advanced Security Configuration below for details. If a repository's visibility is public, advanced security is always enabled and cannot be changed, so this setting cannot be supplied.

    secretScanning Property Map

    The secret scanning configuration for the repository. See Secret Scanning Configuration below for details.

    secretScanningPushProtection Property Map

    The secret scanning push protection configuration for the repository. See Secret Scanning Push Protection Configuration below for details.

    RepositorySecurityAndAnalysisAdvancedSecurity, RepositorySecurityAndAnalysisAdvancedSecurityArgs

    Status string

    Set to enabled to enable advanced security features on the repository. Can be enabled or disabled.

    Status string

    Set to enabled to enable advanced security features on the repository. Can be enabled or disabled.

    status String

    Set to enabled to enable advanced security features on the repository. Can be enabled or disabled.

    status string

    Set to enabled to enable advanced security features on the repository. Can be enabled or disabled.

    status str

    Set to enabled to enable advanced security features on the repository. Can be enabled or disabled.

    status String

    Set to enabled to enable advanced security features on the repository. Can be enabled or disabled.

    RepositorySecurityAndAnalysisSecretScanning, RepositorySecurityAndAnalysisSecretScanningArgs

    Status string

    Set to enabled to enable advanced security features on the repository. Can be enabled or disabled.

    Status string

    Set to enabled to enable advanced security features on the repository. Can be enabled or disabled.

    status String

    Set to enabled to enable advanced security features on the repository. Can be enabled or disabled.

    status string

    Set to enabled to enable advanced security features on the repository. Can be enabled or disabled.

    status str

    Set to enabled to enable advanced security features on the repository. Can be enabled or disabled.

    status String

    Set to enabled to enable advanced security features on the repository. Can be enabled or disabled.

    RepositorySecurityAndAnalysisSecretScanningPushProtection, RepositorySecurityAndAnalysisSecretScanningPushProtectionArgs

    Status string

    Set to enabled to enable advanced security features on the repository. Can be enabled or disabled.

    Status string

    Set to enabled to enable advanced security features on the repository. Can be enabled or disabled.

    status String

    Set to enabled to enable advanced security features on the repository. Can be enabled or disabled.

    status string

    Set to enabled to enable advanced security features on the repository. Can be enabled or disabled.

    status str

    Set to enabled to enable advanced security features on the repository. Can be enabled or disabled.

    status String

    Set to enabled to enable advanced security features on the repository. Can be enabled or disabled.

    RepositoryTemplate, RepositoryTemplateArgs

    Owner string

    The GitHub organization or user the template repository is owned by.

    Repository string

    The name of the template repository.

    IncludeAllBranches bool

    Whether the new repository should include all the branches from the template repository (defaults to false, which includes only the default branch from the template).

    Owner string

    The GitHub organization or user the template repository is owned by.

    Repository string

    The name of the template repository.

    IncludeAllBranches bool

    Whether the new repository should include all the branches from the template repository (defaults to false, which includes only the default branch from the template).

    owner String

    The GitHub organization or user the template repository is owned by.

    repository String

    The name of the template repository.

    includeAllBranches Boolean

    Whether the new repository should include all the branches from the template repository (defaults to false, which includes only the default branch from the template).

    owner string

    The GitHub organization or user the template repository is owned by.

    repository string

    The name of the template repository.

    includeAllBranches boolean

    Whether the new repository should include all the branches from the template repository (defaults to false, which includes only the default branch from the template).

    owner str

    The GitHub organization or user the template repository is owned by.

    repository str

    The name of the template repository.

    include_all_branches bool

    Whether the new repository should include all the branches from the template repository (defaults to false, which includes only the default branch from the template).

    owner String

    The GitHub organization or user the template repository is owned by.

    repository String

    The name of the template repository.

    includeAllBranches Boolean

    Whether the new repository should include all the branches from the template repository (defaults to false, which includes only the default branch from the template).

    Import

    Repositories can be imported using the name, e.g.

     $ pulumi import github:index/repository:Repository terraform terraform
    

    Package Details

    Repository
    GitHub pulumi/pulumi-github
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the github Terraform Provider.

    github logo
    GitHub v5.22.0 published on Tuesday, Oct 31, 2023 by Pulumi