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:

Id string

The provider-assigned unique ID for this managed resource.

Key string

Actual key retrieved.

KeyId string

ID of the key that has been retrieved.

Repository string
Id string

The provider-assigned unique ID for this managed resource.

Key string

Actual key retrieved.

KeyId string

ID of the key that has been retrieved.

Repository string
id string

The provider-assigned unique ID for this managed resource.

key string

Actual key retrieved.

keyId string

ID of the key that has been retrieved.

repository string
id str

The provider-assigned unique ID for this managed resource.

key str

Actual key retrieved.

key_id str

ID of the key that has been retrieved.

repository str

Package Details

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