1. Packages
  2. GitHub
  3. API Docs
  4. getDependabotSecrets
GitHub v6.1.0 published on Monday, Mar 11, 2024 by Pulumi

github.getDependabotSecrets

Explore with Pulumi AI

github logo
GitHub v6.1.0 published on Monday, Mar 11, 2024 by Pulumi

    Use this data source to retrieve the list of dependabot secrets for a GitHub repository.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as github from "@pulumi/github";
    
    const example = github.getDependabotSecrets({
        name: "example",
    });
    
    import pulumi
    import pulumi_github as github
    
    example = github.get_dependabot_secrets(name="example")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-github/sdk/v6/go/github"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := github.GetDependabotSecrets(ctx, &github.GetDependabotSecretsArgs{
    			Name: pulumi.StringRef("example"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Github = Pulumi.Github;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Github.GetDependabotSecrets.Invoke(new()
        {
            Name = "example",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.github.GithubFunctions;
    import com.pulumi.github.inputs.GetDependabotSecretsArgs;
    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) {
            final var example = GithubFunctions.getDependabotSecrets(GetDependabotSecretsArgs.builder()
                .name("example")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: github:getDependabotSecrets
          Arguments:
            name: example
    

    Using getDependabotSecrets

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getDependabotSecrets(args: GetDependabotSecretsArgs, opts?: InvokeOptions): Promise<GetDependabotSecretsResult>
    function getDependabotSecretsOutput(args: GetDependabotSecretsOutputArgs, opts?: InvokeOptions): Output<GetDependabotSecretsResult>
    def get_dependabot_secrets(full_name: Optional[str] = None,
                               name: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetDependabotSecretsResult
    def get_dependabot_secrets_output(full_name: Optional[pulumi.Input[str]] = None,
                               name: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetDependabotSecretsResult]
    func GetDependabotSecrets(ctx *Context, args *GetDependabotSecretsArgs, opts ...InvokeOption) (*GetDependabotSecretsResult, error)
    func GetDependabotSecretsOutput(ctx *Context, args *GetDependabotSecretsOutputArgs, opts ...InvokeOption) GetDependabotSecretsResultOutput

    > Note: This function is named GetDependabotSecrets in the Go SDK.

    public static class GetDependabotSecrets 
    {
        public static Task<GetDependabotSecretsResult> InvokeAsync(GetDependabotSecretsArgs args, InvokeOptions? opts = null)
        public static Output<GetDependabotSecretsResult> Invoke(GetDependabotSecretsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDependabotSecretsResult> getDependabotSecrets(GetDependabotSecretsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: github:index/getDependabotSecrets:getDependabotSecrets
      arguments:
        # arguments dictionary

    The following arguments are supported:

    FullName string
    Full name of the repository (in org/name format).
    Name string
    The name of the repository.
    FullName string
    Full name of the repository (in org/name format).
    Name string
    The name of the repository.
    fullName String
    Full name of the repository (in org/name format).
    name String
    The name of the repository.
    fullName string
    Full name of the repository (in org/name format).
    name string
    The name of the repository.
    full_name str
    Full name of the repository (in org/name format).
    name str
    The name of the repository.
    fullName String
    Full name of the repository (in org/name format).
    name String
    The name of the repository.

    getDependabotSecrets Result

    The following output properties are available:

    FullName string
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Secret name
    Secrets List<GetDependabotSecretsSecret>
    list of dependabot secrets for the repository
    FullName string
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Secret name
    Secrets []GetDependabotSecretsSecret
    list of dependabot secrets for the repository
    fullName String
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Secret name
    secrets List<GetDependabotSecretsSecret>
    list of dependabot secrets for the repository
    fullName string
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Secret name
    secrets GetDependabotSecretsSecret[]
    list of dependabot secrets for the repository
    full_name str
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Secret name
    secrets Sequence[GetDependabotSecretsSecret]
    list of dependabot secrets for the repository
    fullName String
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Secret name
    secrets List<Property Map>
    list of dependabot secrets for the repository

    Supporting Types

    GetDependabotSecretsSecret

    CreatedAt string
    Timestamp of the secret creation
    Name string
    The name of the repository.
    UpdatedAt string
    Timestamp of the secret last update
    CreatedAt string
    Timestamp of the secret creation
    Name string
    The name of the repository.
    UpdatedAt string
    Timestamp of the secret last update
    createdAt String
    Timestamp of the secret creation
    name String
    The name of the repository.
    updatedAt String
    Timestamp of the secret last update
    createdAt string
    Timestamp of the secret creation
    name string
    The name of the repository.
    updatedAt string
    Timestamp of the secret last update
    created_at str
    Timestamp of the secret creation
    name str
    The name of the repository.
    updated_at str
    Timestamp of the secret last update
    createdAt String
    Timestamp of the secret creation
    name String
    The name of the repository.
    updatedAt String
    Timestamp of the secret last update

    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 v6.1.0 published on Monday, Mar 11, 2024 by Pulumi