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

github.getActionsEnvironmentSecrets

Explore with Pulumi AI

Use this data source to retrieve the list of secrets of the repository environment.

Example Usage

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

const example = github.getActionsEnvironmentSecrets({
    name: "exampleRepo",
    environment: "exampleEnvironment",
});
Copy
import pulumi
import pulumi_github as github

example = github.get_actions_environment_secrets(name="exampleRepo",
    environment="exampleEnvironment")
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.GetActionsEnvironmentSecrets(ctx, &github.GetActionsEnvironmentSecretsArgs{
			Name:        pulumi.StringRef("exampleRepo"),
			Environment: "exampleEnvironment",
		}, 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.GetActionsEnvironmentSecrets.Invoke(new()
    {
        Name = "exampleRepo",
        Environment = "exampleEnvironment",
    });

});
Copy
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.GetActionsEnvironmentSecretsArgs;
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.getActionsEnvironmentSecrets(GetActionsEnvironmentSecretsArgs.builder()
            .name("exampleRepo")
            .environment("exampleEnvironment")
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: github:getActionsEnvironmentSecrets
      arguments:
        name: exampleRepo
        environment: exampleEnvironment
Copy

Using getActionsEnvironmentSecrets

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 getActionsEnvironmentSecrets(args: GetActionsEnvironmentSecretsArgs, opts?: InvokeOptions): Promise<GetActionsEnvironmentSecretsResult>
function getActionsEnvironmentSecretsOutput(args: GetActionsEnvironmentSecretsOutputArgs, opts?: InvokeOptions): Output<GetActionsEnvironmentSecretsResult>
Copy
def get_actions_environment_secrets(environment: Optional[str] = None,
                                    full_name: Optional[str] = None,
                                    name: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetActionsEnvironmentSecretsResult
def get_actions_environment_secrets_output(environment: Optional[pulumi.Input[str]] = None,
                                    full_name: Optional[pulumi.Input[str]] = None,
                                    name: Optional[pulumi.Input[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetActionsEnvironmentSecretsResult]
Copy
func GetActionsEnvironmentSecrets(ctx *Context, args *GetActionsEnvironmentSecretsArgs, opts ...InvokeOption) (*GetActionsEnvironmentSecretsResult, error)
func GetActionsEnvironmentSecretsOutput(ctx *Context, args *GetActionsEnvironmentSecretsOutputArgs, opts ...InvokeOption) GetActionsEnvironmentSecretsResultOutput
Copy

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

public static class GetActionsEnvironmentSecrets 
{
    public static Task<GetActionsEnvironmentSecretsResult> InvokeAsync(GetActionsEnvironmentSecretsArgs args, InvokeOptions? opts = null)
    public static Output<GetActionsEnvironmentSecretsResult> Invoke(GetActionsEnvironmentSecretsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetActionsEnvironmentSecretsResult> getActionsEnvironmentSecrets(GetActionsEnvironmentSecretsArgs args, InvokeOptions options)
public static Output<GetActionsEnvironmentSecretsResult> getActionsEnvironmentSecrets(GetActionsEnvironmentSecretsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: github:index/getActionsEnvironmentSecrets:getActionsEnvironmentSecrets
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Environment This property is required. string
FullName string
Name string
Name of the secret
Environment This property is required. string
FullName string
Name string
Name of the secret
environment This property is required. String
fullName String
name String
Name of the secret
environment This property is required. string
fullName string
name string
Name of the secret
environment This property is required. str
full_name str
name str
Name of the secret
environment This property is required. String
fullName String
name String
Name of the secret

getActionsEnvironmentSecrets Result

The following output properties are available:

Environment string
FullName string
Id string
The provider-assigned unique ID for this managed resource.
Name string
Name of the secret
Secrets List<GetActionsEnvironmentSecretsSecret>
list of secrets for the environment
Environment string
FullName string
Id string
The provider-assigned unique ID for this managed resource.
Name string
Name of the secret
Secrets []GetActionsEnvironmentSecretsSecret
list of secrets for the environment
environment String
fullName String
id String
The provider-assigned unique ID for this managed resource.
name String
Name of the secret
secrets List<GetActionsEnvironmentSecretsSecret>
list of secrets for the environment
environment string
fullName string
id string
The provider-assigned unique ID for this managed resource.
name string
Name of the secret
secrets GetActionsEnvironmentSecretsSecret[]
list of secrets for the environment
environment str
full_name str
id str
The provider-assigned unique ID for this managed resource.
name str
Name of the secret
secrets Sequence[GetActionsEnvironmentSecretsSecret]
list of secrets for the environment
environment String
fullName String
id String
The provider-assigned unique ID for this managed resource.
name String
Name of the secret
secrets List<Property Map>
list of secrets for the environment

Supporting Types

GetActionsEnvironmentSecretsSecret

CreatedAt This property is required. string
Timestamp of the secret creation
Name This property is required. string
Name of the secret
UpdatedAt This property is required. string
Timestamp of the secret last update
CreatedAt This property is required. string
Timestamp of the secret creation
Name This property is required. string
Name of the secret
UpdatedAt This property is required. string
Timestamp of the secret last update
createdAt This property is required. String
Timestamp of the secret creation
name This property is required. String
Name of the secret
updatedAt This property is required. String
Timestamp of the secret last update
createdAt This property is required. string
Timestamp of the secret creation
name This property is required. string
Name of the secret
updatedAt This property is required. string
Timestamp of the secret last update
created_at This property is required. str
Timestamp of the secret creation
name This property is required. str
Name of the secret
updated_at This property is required. str
Timestamp of the secret last update
createdAt This property is required. String
Timestamp of the secret creation
name This property is required. String
Name of the secret
updatedAt This property is required. String
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 github Terraform Provider.