github_actions_repository_oidc_subject_claim_customization_template

This resource allows you to create and manage an OpenID Connect subject claim customization template for a GitHub repository.

More information on integrating GitHub with cloud providers using OpenID Connect and a list of available claims is available in the Actions documentation.

The following table lists the behaviour of use_default:

use_default include_claim_keys Template used
true Unset GitHub's default
false Set include_claim_keys
false Unset Organization's default if set, otherwise GitHub's default

Example Usage

resource "github_repository" "example" {
  name = "example-repository"
}

resource "github_actions_repository_oidc_subject_claim_customization_template" "example_template" {
  repository = github_repository.example.name
  use_default = false
  include_claim_keys = ["actor", "context", "repository_owner"]
}

Argument Reference

The following arguments are supported:

Import

This resource can be imported using the repository's name.

$ terraform import github_actions_repository_oidc_subject_claim_customization_template.test example_repository