Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make resource repository_deploy_key read_only a bool, and expand the example #2044

Merged
merged 5 commits into from
Jan 19, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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