Skip to content

Commit 8cd6906

Browse files
authored
fix: correct gitauth documentation (#49)
1 parent 62bb8c6 commit 8cd6906

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,13 @@ For access token-based authentication, follow the following schema (if empty, th
9696
If using envbuilder inside of [Coder](https://github.com/coder/coder), you can use the `coder_git_auth` Terraform resource to automatically provide this token on workspace creation:
9797

9898
```hcl
99-
resource "coder_git_auth" "github" {
99+
data "coder_git_auth" "github" {
100100
id = "github"
101101
}
102102
103103
resource "docker_container" "dev" {
104104
env = [
105-
GIT_USERNAME = coder_git_auth.github.access_token,
105+
GIT_USERNAME = data.coder_git_auth.github.access_token,
106106
]
107107
}
108108
```

0 commit comments

Comments
 (0)