From 8cd6906054bbf78ee16999267c7edff881f3d35a Mon Sep 17 00:00:00 2001 From: Jan Losinski Date: Mon, 14 Aug 2023 17:39:43 +0200 Subject: [PATCH] fix: correct gitauth documentation (#49) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ed6d615a..b774c54c 100644 --- a/README.md +++ b/README.md @@ -96,13 +96,13 @@ For access token-based authentication, follow the following schema (if empty, th 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: ```hcl -resource "coder_git_auth" "github" { +data "coder_git_auth" "github" { id = "github" } resource "docker_container" "dev" { env = [ - GIT_USERNAME = coder_git_auth.github.access_token, + GIT_USERNAME = data.coder_git_auth.github.access_token, ] } ```