mirror of
https://github.com/coder/coder.git
synced 2026-09-22 05:05:20 +08:00
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:
+2
-2
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user