GetActionsPublicKey
Use this data source to retrieve information about a GitHub Actions 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 a repository to retrieve it’s action public key.
Example Usage
using Pulumi;
using Github = Pulumi.Github;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Github.GetActionsPublicKey.InvokeAsync(new Github.GetActionsPublicKeyArgs
{
Repository = "example_repo",
}));
}
}
Coming soon!
import pulumi
import pulumi_github as github
example = github.get_actions_public_key(repository="example_repo")import * as pulumi from "@pulumi/pulumi";
import * as github from "@pulumi/github";
const example = pulumi.output(github.getActionsPublicKey({
repository: "example_repo",
}, { async: true }));Using GetActionsPublicKey
function getActionsPublicKey(args: GetActionsPublicKeyArgs, opts?: InvokeOptions): Promise<GetActionsPublicKeyResult>function get_actions_public_key(repository=None, opts=None)func GetActionsPublicKey(ctx *Context, args *GetActionsPublicKeyArgs, opts ...InvokeOption) (*GetActionsPublicKeyResult, error)public static class GetActionsPublicKey {
public static Task<GetActionsPublicKeyResult> InvokeAsync(GetActionsPublicKeyArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Repository string
Name of the repository to get public key from.
- Repository string
Name of the repository to get public key from.
- repository string
Name of the repository to get public key from.
- repository str
Name of the repository to get public key from.
GetActionsPublicKey Result
The following output properties are available:
Package Details
- Repository
- https://github.com/pulumi/pulumi-github
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
githubTerraform Provider.