chore(dogfood): use `coder_extrenal_auth` over deprecated `coder_git_auth` (#10208)

@kylecarbs does this need any changes on the Coder server?
For example adopting to the new `CODER_EXTERNAL_AUTH_X` variables?
This commit is contained in:
Muhammad Atif Ali 2023-10-12 10:30:00 +03:00 committed by GitHub
parent 5f0457f160
commit 3adf86b608
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ provider "docker" {
provider "coder" {}
data "coder_git_auth" "github" {
data "coder_external_auth" "github" {
id = "github"
}
@ -130,7 +130,7 @@ resource "coder_agent" "dev" {
os = "linux"
dir = data.coder_parameter.repo_dir.value
env = {
GITHUB_TOKEN : data.coder_git_auth.github.access_token,
GITHUB_TOKEN : data.coder_external_auth.github.access_token,
OIDC_TOKEN : data.coder_workspace.me.owner_oidc_access_token,
}
startup_script_behavior = "blocking"