Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.05 KB

File metadata and controls

32 lines (23 loc) · 1.05 KB
page_title github_actions_environment_public_key Data Source - terraform-provider-github
description Get information on a GitHub Actions Environment Public Key.

github_actions_environment_public_key (Data Source)

Use this data source to retrieve information about a GitHub Actions public key of a specific environment. 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 the action public keys of it's environments.

Example Usage

data "github_actions_environment_public_key" "example" {
  repository = "example_repo"
  environment = "example_environment"
}

Schema

Required

  • environment (String) Name of the environment to get public key from.
  • repository (String) Name of the repository to get public key from.

Read-Only

  • id (String) The ID of this resource.
  • key (String) Actual key retrieved.
  • key_id (String) ID of the key that has been retrieved.