1. Packages
  2. Packages
  3. Github Provider
  4. API Docs
  5. DependabotOrganizationSecretRepositories
Viewing docs for GitHub v5.26.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
github logo
Viewing docs for GitHub v5.26.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi

    Create DependabotOrganizationSecretRepositories Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new DependabotOrganizationSecretRepositories(name: string, args: DependabotOrganizationSecretRepositoriesArgs, opts?: CustomResourceOptions);
    @overload
    def DependabotOrganizationSecretRepositories(resource_name: str,
                                                 args: DependabotOrganizationSecretRepositoriesArgs,
                                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def DependabotOrganizationSecretRepositories(resource_name: str,
                                                 opts: Optional[ResourceOptions] = None,
                                                 secret_name: Optional[str] = None,
                                                 selected_repository_ids: Optional[Sequence[int]] = None)
    func NewDependabotOrganizationSecretRepositories(ctx *Context, name string, args DependabotOrganizationSecretRepositoriesArgs, opts ...ResourceOption) (*DependabotOrganizationSecretRepositories, error)
    public DependabotOrganizationSecretRepositories(string name, DependabotOrganizationSecretRepositoriesArgs args, CustomResourceOptions? opts = null)
    public DependabotOrganizationSecretRepositories(String name, DependabotOrganizationSecretRepositoriesArgs args)
    public DependabotOrganizationSecretRepositories(String name, DependabotOrganizationSecretRepositoriesArgs args, CustomResourceOptions options)
    
    type: github:DependabotOrganizationSecretRepositories
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args DependabotOrganizationSecretRepositoriesArgs
    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 DependabotOrganizationSecretRepositoriesArgs
    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 DependabotOrganizationSecretRepositoriesArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DependabotOrganizationSecretRepositoriesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DependabotOrganizationSecretRepositoriesArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var dependabotOrganizationSecretRepositoriesResource = new Github.DependabotOrganizationSecretRepositories("dependabotOrganizationSecretRepositoriesResource", new()
    {
        SecretName = "string",
        SelectedRepositoryIds = new[]
        {
            0,
        },
    });
    
    example, err := github.NewDependabotOrganizationSecretRepositories(ctx, "dependabotOrganizationSecretRepositoriesResource", &github.DependabotOrganizationSecretRepositoriesArgs{
    	SecretName: pulumi.String("string"),
    	SelectedRepositoryIds: pulumi.IntArray{
    		pulumi.Int(0),
    	},
    })
    
    var dependabotOrganizationSecretRepositoriesResource = new DependabotOrganizationSecretRepositories("dependabotOrganizationSecretRepositoriesResource", DependabotOrganizationSecretRepositoriesArgs.builder()
        .secretName("string")
        .selectedRepositoryIds(0)
        .build());
    
    dependabot_organization_secret_repositories_resource = github.DependabotOrganizationSecretRepositories("dependabotOrganizationSecretRepositoriesResource",
        secret_name="string",
        selected_repository_ids=[0])
    
    const dependabotOrganizationSecretRepositoriesResource = new github.DependabotOrganizationSecretRepositories("dependabotOrganizationSecretRepositoriesResource", {
        secretName: "string",
        selectedRepositoryIds: [0],
    });
    
    type: github:DependabotOrganizationSecretRepositories
    properties:
        secretName: string
        selectedRepositoryIds:
            - 0
    

    DependabotOrganizationSecretRepositories Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The DependabotOrganizationSecretRepositories resource accepts the following input properties:

    SecretName string
    Name of the existing secret.
    SelectedRepositoryIds List<int>
    An array of repository ids that can access the organization secret.
    SecretName string
    Name of the existing secret.
    SelectedRepositoryIds []int
    An array of repository ids that can access the organization secret.
    secretName String
    Name of the existing secret.
    selectedRepositoryIds List<Integer>
    An array of repository ids that can access the organization secret.
    secretName string
    Name of the existing secret.
    selectedRepositoryIds number[]
    An array of repository ids that can access the organization secret.
    secret_name str
    Name of the existing secret.
    selected_repository_ids Sequence[int]
    An array of repository ids that can access the organization secret.
    secretName String
    Name of the existing secret.
    selectedRepositoryIds List<Number>
    An array of repository ids that can access the organization secret.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing DependabotOrganizationSecretRepositories Resource

    Get an existing DependabotOrganizationSecretRepositories 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?: DependabotOrganizationSecretRepositoriesState, opts?: CustomResourceOptions): DependabotOrganizationSecretRepositories
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            secret_name: Optional[str] = None,
            selected_repository_ids: Optional[Sequence[int]] = None) -> DependabotOrganizationSecretRepositories
    func GetDependabotOrganizationSecretRepositories(ctx *Context, name string, id IDInput, state *DependabotOrganizationSecretRepositoriesState, opts ...ResourceOption) (*DependabotOrganizationSecretRepositories, error)
    public static DependabotOrganizationSecretRepositories Get(string name, Input<string> id, DependabotOrganizationSecretRepositoriesState? state, CustomResourceOptions? opts = null)
    public static DependabotOrganizationSecretRepositories get(String name, Output<String> id, DependabotOrganizationSecretRepositoriesState state, CustomResourceOptions options)
    resources:  _:    type: github:DependabotOrganizationSecretRepositories    get:      id: ${id}
    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:
    SecretName string
    Name of the existing secret.
    SelectedRepositoryIds List<int>
    An array of repository ids that can access the organization secret.
    SecretName string
    Name of the existing secret.
    SelectedRepositoryIds []int
    An array of repository ids that can access the organization secret.
    secretName String
    Name of the existing secret.
    selectedRepositoryIds List<Integer>
    An array of repository ids that can access the organization secret.
    secretName string
    Name of the existing secret.
    selectedRepositoryIds number[]
    An array of repository ids that can access the organization secret.
    secret_name str
    Name of the existing secret.
    selected_repository_ids Sequence[int]
    An array of repository ids that can access the organization secret.
    secretName String
    Name of the existing secret.
    selectedRepositoryIds List<Number>
    An array of repository ids that can access the organization secret.

    Package Details

    Repository
    GitHub pulumi/pulumi-github
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the github Terraform Provider.
    github logo
    Viewing docs for GitHub v5.26.0 (Older version)
    published on Monday, Mar 9, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.