GitHub v6.8.1 published on Saturday, Nov 1, 2025 by Pulumi
github.getCodespacesOrganizationSecrets
Use this data source to retrieve the list of codespaces secrets of the organization.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as github from "@pulumi/github";
const example = github.getCodespacesOrganizationSecrets({});
import pulumi
import pulumi_github as github
example = github.get_codespaces_organization_secrets()
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.GetCodespacesOrganizationSecrets(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.GetCodespacesOrganizationSecrets.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.getCodespacesOrganizationSecrets(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);
}
}
variables:
example:
fn::invoke:
function: github:getCodespacesOrganizationSecrets
arguments: {}
Using getCodespacesOrganizationSecrets
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 getCodespacesOrganizationSecrets(opts?: InvokeOptions): Promise<GetCodespacesOrganizationSecretsResult>
function getCodespacesOrganizationSecretsOutput(opts?: InvokeOptions): Output<GetCodespacesOrganizationSecretsResult>def get_codespaces_organization_secrets(opts: Optional[InvokeOptions] = None) -> GetCodespacesOrganizationSecretsResult
def get_codespaces_organization_secrets_output(opts: Optional[InvokeOptions] = None) -> Output[GetCodespacesOrganizationSecretsResult]func GetCodespacesOrganizationSecrets(ctx *Context, opts ...InvokeOption) (*GetCodespacesOrganizationSecretsResult, error)
func GetCodespacesOrganizationSecretsOutput(ctx *Context, opts ...InvokeOption) GetCodespacesOrganizationSecretsResultOutput> Note: This function is named GetCodespacesOrganizationSecrets in the Go SDK.
public static class GetCodespacesOrganizationSecrets
{
public static Task<GetCodespacesOrganizationSecretsResult> InvokeAsync(InvokeOptions? opts = null)
public static Output<GetCodespacesOrganizationSecretsResult> Invoke(InvokeOptions? opts = null)
}public static CompletableFuture<GetCodespacesOrganizationSecretsResult> getCodespacesOrganizationSecrets(InvokeOptions options)
public static Output<GetCodespacesOrganizationSecretsResult> getCodespacesOrganizationSecrets(InvokeOptions options)
fn::invoke:
function: github:index/getCodespacesOrganizationSecrets:getCodespacesOrganizationSecrets
arguments:
# arguments dictionarygetCodespacesOrganizationSecrets Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Secrets
List<Get
Codespaces Organization Secrets Secret> - list of secrets for the repository
- Id string
- The provider-assigned unique ID for this managed resource.
- Secrets
[]Get
Codespaces Organization Secrets Secret - list of secrets for the repository
- id String
- The provider-assigned unique ID for this managed resource.
- secrets
List<Get
Codespaces Organization Secrets Secret> - list of secrets for the repository
- id string
- The provider-assigned unique ID for this managed resource.
- secrets
Get
Codespaces Organization Secrets Secret[] - list of secrets for the repository
- id str
- The provider-assigned unique ID for this managed resource.
- secrets
Sequence[Get
Codespaces Organization Secrets Secret] - list of secrets for the repository
- id String
- The provider-assigned unique ID for this managed resource.
- secrets List<Property Map>
- list of secrets for the repository
Supporting Types
GetCodespacesOrganizationSecretsSecret
- Created
At string - Timestamp of the secret creation
- Name string
- Secret name
- Updated
At string - Timestamp of the secret last update
- Visibility string
- Secret visibility
- Created
At string - Timestamp of the secret creation
- Name string
- Secret name
- Updated
At string - Timestamp of the secret last update
- Visibility string
- Secret visibility
- created
At String - Timestamp of the secret creation
- name String
- Secret name
- updated
At String - Timestamp of the secret last update
- visibility String
- Secret visibility
- created
At string - Timestamp of the secret creation
- name string
- Secret name
- updated
At string - Timestamp of the secret last update
- visibility string
- Secret visibility
- created_
at str - Timestamp of the secret creation
- name str
- Secret name
- updated_
at str - Timestamp of the secret last update
- visibility str
- Secret visibility
- created
At String - Timestamp of the secret creation
- name String
- Secret name
- updated
At String - Timestamp of the secret last update
- visibility String
- Secret visibility
Package Details
- Repository
- GitHub pulumi/pulumi-github
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
githubTerraform Provider.
