mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00: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:
committed by
GitHub
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"
|
||||
|
Reference in New Issue
Block a user