Skip to content

Commit

Permalink
Add docs
Browse files Browse the repository at this point in the history
Signed-off-by: Diogenes Fernandes <[email protected]>
  • Loading branch information
diofeher committed Jan 3, 2025
1 parent f811351 commit 166c1b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion website/docs/r/actions_secret.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ resource "github_actions_secret" "example_secret" {
}
resource "github_actions_secret" "example_secret" {
owner = "example_owner"
repository = "example_repository"
secret_name = "example_secret_name"
encrypted_value = var.some_encrypted_secret_string
Expand All @@ -45,6 +46,7 @@ The following arguments are supported:

* `repository` - (Required) Name of the repository
* `secret_name` - (Required) Name of the secret
* `owner` - (Optional) The account owner of the repository
* `encrypted_value` - (Optional) Encrypted value of the secret using the GitHub public key in Base64 format.
* `plaintext_value` - (Optional) Plaintext value of the secret to be encrypted

Expand All @@ -62,4 +64,4 @@ $ terraform import github_actions_secret.example_secret repository/secret_name
```

NOTE: the implementation is limited in that it won't fetch the value of the
`plaintext_value` or `encrypted_value` fields when importing. You may need to ignore changes for these as a workaround.
`plaintext_value` or `encrypted_value` fields when importing. You may need to ignore changes for these as a workaround.

0 comments on commit 166c1b3

Please sign in to comment.