1. Packages
  2. Github Provider
  3. API Docs
  4. getDependabotOrganizationSecrets
GitHub v6.7.0 published on Friday, Feb 28, 2025 by Pulumi

github.getDependabotOrganizationSecrets

Explore with Pulumi AI

Use this data source to retrieve the list of dependabot secrets of the organization.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as github from "@pulumi/github";

const example = github.getDependabotOrganizationSecrets({});
Copy
import pulumi
import pulumi_github as github

example = github.get_dependabot_organization_secrets()
Copy
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.GetDependabotOrganizationSecrets(ctx, map[string]interface{}{}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Github = Pulumi.Github;

return await Deployment.RunAsync(() => 
{
    var example = Github.GetDependabotOrganizationSecrets.Invoke();

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.github.GithubFunctions;
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.getDependabotOrganizationSecrets();

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: github:getDependabotOrganizationSecrets
      arguments: {}
Copy

Using getDependabotOrganizationSecrets

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 getDependabotOrganizationSecrets(opts?: InvokeOptions): Promise<GetDependabotOrganizationSecretsResult>
function getDependabotOrganizationSecretsOutput(opts?: InvokeOptions): Output<GetDependabotOrganizationSecretsResult>
Copy
def get_dependabot_organization_secrets(opts: Optional[InvokeOptions] = None) -> GetDependabotOrganizationSecretsResult
def get_dependabot_organization_secrets_output(opts: Optional[InvokeOptions] = None) -> Output[GetDependabotOrganizationSecretsResult]
Copy
func GetDependabotOrganizationSecrets(ctx *Context, opts ...InvokeOption) (*GetDependabotOrganizationSecretsResult, error)
func GetDependabotOrganizationSecretsOutput(ctx *Context, opts ...InvokeOption) GetDependabotOrganizationSecretsResultOutput
Copy

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

public static class GetDependabotOrganizationSecrets 
{
    public static Task<GetDependabotOrganizationSecretsResult> InvokeAsync(InvokeOptions? opts = null)
    public static Output<GetDependabotOrganizationSecretsResult> Invoke(InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetDependabotOrganizationSecretsResult> getDependabotOrganizationSecrets(InvokeOptions options)
public static Output<GetDependabotOrganizationSecretsResult> getDependabotOrganizationSecrets(InvokeOptions options)
Copy
fn::invoke:
  function: github:index/getDependabotOrganizationSecrets:getDependabotOrganizationSecrets
  arguments:
    # arguments dictionary
Copy

getDependabotOrganizationSecrets Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Secrets List<GetDependabotOrganizationSecretsSecret>
list of secrets for the repository
Id string
The provider-assigned unique ID for this managed resource.
Secrets []GetDependabotOrganizationSecretsSecret
list of secrets for the repository
id String
The provider-assigned unique ID for this managed resource.
secrets List<GetDependabotOrganizationSecretsSecret>
list of secrets for the repository
id string
The provider-assigned unique ID for this managed resource.
secrets GetDependabotOrganizationSecretsSecret[]
list of secrets for the repository
id str
The provider-assigned unique ID for this managed resource.
secrets Sequence[GetDependabotOrganizationSecretsSecret]
list of secrets for the repository
id String
The provider-assigned unique ID for this managed resource.
secrets List<Property Map>
list of secrets for the repository

Supporting Types

GetDependabotOrganizationSecretsSecret

CreatedAt This property is required. string
Timestamp of the secret creation
Name This property is required. string
Secret name
UpdatedAt This property is required. string
Timestamp of the secret last update
Visibility This property is required. string
Secret visibility
CreatedAt This property is required. string
Timestamp of the secret creation
Name This property is required. string
Secret name
UpdatedAt This property is required. string
Timestamp of the secret last update
Visibility This property is required. string
Secret visibility
createdAt This property is required. String
Timestamp of the secret creation
name This property is required. String
Secret name
updatedAt This property is required. String
Timestamp of the secret last update
visibility This property is required. String
Secret visibility
createdAt This property is required. string
Timestamp of the secret creation
name This property is required. string
Secret name
updatedAt This property is required. string
Timestamp of the secret last update
visibility This property is required. string
Secret visibility
created_at This property is required. str
Timestamp of the secret creation
name This property is required. str
Secret name
updated_at This property is required. str
Timestamp of the secret last update
visibility This property is required. str
Secret visibility
createdAt This property is required. String
Timestamp of the secret creation
name This property is required. String
Secret name
updatedAt This property is required. String
Timestamp of the secret last update
visibility This property is required. String
Secret visibility

Package Details

Repository
GitHub pulumi/pulumi-github
License
Apache-2.0
Notes
This Pulumi package is based on the github Terraform Provider.