Skip to content

Commit

Permalink
Make resource repository_deploy_key read_only a bool, and expand the …
Browse files Browse the repository at this point in the history
…example (integrations#2044)

* Make resource repository_deploy_key read_only a bool, and expand the example

* Clarify used provider

---------

Co-authored-by: Keegan Campbell <me@kfcampbell.com>
  • Loading branch information
rwblokzijl and kfcampbell authored Jan 19, 2024
1 parent 0f71b22 commit 560bfdc
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions website/docs/r/repository_deploy_key.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,17 @@ Further documentation on GitHub repository deploy keys:
## Example Usage

```hcl
# Add a deploy key
# Generate an ssh key using provider "hashicorp/tls"
resource "tls_private_key" "example_repository_deploy_key" {
algorithm = "ED25519"
}
# Add the ssh key as a deploy key
resource "github_repository_deploy_key" "example_repository_deploy_key" {
title = "Repository test key"
repository = "test-repo"
key = "ssh-rsa AAA..."
read_only = "false"
key = tls_private_key.example_repository_deploy_key.public_key_openssh
read_only = true
}
```

Expand Down

0 comments on commit 560bfdc

Please sign in to comment.