mirror of https://github.com/coder/coder.git
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:
parent
5f0457f160
commit
3adf86b608
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue