Viewing docs for GitHub v6.12.1
published on Thursday, Feb 12, 2026 by Pulumi
published on Thursday, Feb 12, 2026 by Pulumi
Viewing docs for GitHub v6.12.1
published on Thursday, Feb 12, 2026 by Pulumi
published on Thursday, Feb 12, 2026 by Pulumi
Use this data source to retrieve the list of secrets for a GitHub repository.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as github from "@pulumi/github";
const example = github.getActionsSecrets({
name: "example",
});
import pulumi
import pulumi_github as github
example = github.get_actions_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.GetActionsSecrets(ctx, &github.GetActionsSecretsArgs{
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.GetActionsSecrets.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.GetActionsSecretsArgs;
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.getActionsSecrets(GetActionsSecretsArgs.builder()
.name("example")
.build());
}
}
variables:
example:
fn::invoke:
function: github:getActionsSecrets
arguments:
name: example
Using getActionsSecrets
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 getActionsSecrets(args: GetActionsSecretsArgs, opts?: InvokeOptions): Promise<GetActionsSecretsResult>
function getActionsSecretsOutput(args: GetActionsSecretsOutputArgs, opts?: InvokeOptions): Output<GetActionsSecretsResult>def get_actions_secrets(full_name: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetActionsSecretsResult
def get_actions_secrets_output(full_name: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetActionsSecretsResult]func GetActionsSecrets(ctx *Context, args *GetActionsSecretsArgs, opts ...InvokeOption) (*GetActionsSecretsResult, error)
func GetActionsSecretsOutput(ctx *Context, args *GetActionsSecretsOutputArgs, opts ...InvokeOption) GetActionsSecretsResultOutput> Note: This function is named GetActionsSecrets in the Go SDK.
public static class GetActionsSecrets
{
public static Task<GetActionsSecretsResult> InvokeAsync(GetActionsSecretsArgs args, InvokeOptions? opts = null)
public static Output<GetActionsSecretsResult> Invoke(GetActionsSecretsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetActionsSecretsResult> getActionsSecrets(GetActionsSecretsArgs args, InvokeOptions options)
public static Output<GetActionsSecretsResult> getActionsSecrets(GetActionsSecretsArgs args, InvokeOptions options)
fn::invoke:
function: github:index/getActionsSecrets:getActionsSecrets
arguments:
# arguments dictionaryThe following arguments are supported:
getActionsSecrets Result
The following output properties are available:
- Full
Name string - Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Secret name
- Secrets
List<Get
Actions Secrets Secret> - list of secrets for the repository
- Full
Name string - Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Secret name
- Secrets
[]Get
Actions Secrets Secret - list of secrets for the repository
- full
Name String - id String
- The provider-assigned unique ID for this managed resource.
- name String
- Secret name
- secrets
List<Get
Actions Secrets Secret> - list of secrets for the repository
- full
Name string - id string
- The provider-assigned unique ID for this managed resource.
- name string
- Secret name
- secrets
Get
Actions Secrets Secret[] - list of secrets for the repository
- full_
name str - id str
- The provider-assigned unique ID for this managed resource.
- name str
- Secret name
- secrets
Sequence[Get
Actions Secrets Secret] - list of secrets for the repository
- full
Name String - id String
- The provider-assigned unique ID for this managed resource.
- name String
- Secret name
- secrets List<Property Map>
- list of secrets for the repository
Supporting Types
GetActionsSecretsSecret
- created_
at str - Timestamp of the secret creation
- name str
- The name of the repository.
- updated_
at str - 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
githubTerraform Provider.
Viewing docs for GitHub v6.12.1
published on Thursday, Feb 12, 2026 by Pulumi
published on Thursday, Feb 12, 2026 by Pulumi
