GitHub v6.3.2 published on Friday, Oct 11, 2024 by Pulumi
github.getDependabotOrganizationPublicKey
Explore with Pulumi AI
Use this data source to retrieve information about a GitHub Dependabot Organization public key. This data source is required to be used with other GitHub secrets interactions.
Note that the provider token
must have admin rights to an organization to retrieve it’s Dependabot public key.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as github from "@pulumi/github";
const example = github.getDependabotOrganizationPublicKey({});
import pulumi
import pulumi_github as github
example = github.get_dependabot_organization_public_key()
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.GetDependabotOrganizationPublicKey(ctx, map[string]interface{}{}, 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.GetDependabotOrganizationPublicKey.Invoke();
});
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.getDependabotOrganizationPublicKey();
}
}
variables:
example:
fn::invoke:
Function: github:getDependabotOrganizationPublicKey
Arguments: {}
Using getDependabotOrganizationPublicKey
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 getDependabotOrganizationPublicKey(opts?: InvokeOptions): Promise<GetDependabotOrganizationPublicKeyResult>
function getDependabotOrganizationPublicKeyOutput(opts?: InvokeOptions): Output<GetDependabotOrganizationPublicKeyResult>
def get_dependabot_organization_public_key(opts: Optional[InvokeOptions] = None) -> GetDependabotOrganizationPublicKeyResult
def get_dependabot_organization_public_key_output(opts: Optional[InvokeOptions] = None) -> Output[GetDependabotOrganizationPublicKeyResult]
func GetDependabotOrganizationPublicKey(ctx *Context, opts ...InvokeOption) (*GetDependabotOrganizationPublicKeyResult, error)
func GetDependabotOrganizationPublicKeyOutput(ctx *Context, opts ...InvokeOption) GetDependabotOrganizationPublicKeyResultOutput
> Note: This function is named GetDependabotOrganizationPublicKey
in the Go SDK.
public static class GetDependabotOrganizationPublicKey
{
public static Task<GetDependabotOrganizationPublicKeyResult> InvokeAsync(InvokeOptions? opts = null)
public static Output<GetDependabotOrganizationPublicKeyResult> Invoke(InvokeOptions? opts = null)
}
public static CompletableFuture<GetDependabotOrganizationPublicKeyResult> getDependabotOrganizationPublicKey(InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: github:index/getDependabotOrganizationPublicKey:getDependabotOrganizationPublicKey
arguments:
# arguments dictionary
getDependabotOrganizationPublicKey Result
The following output properties are available:
Package Details
- Repository
- GitHub pulumi/pulumi-github
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
github
Terraform Provider.