GitHub 集成尚未配置
要让"从 GitHub 选择仓库"和"克隆私有仓库"工作,CDS 需要一个 GitHub OAuth App Client ID。这是 系统级 设置,需要运维在 CDS 进程启动前通过环境变量注入。
# 1) 去 https://github.com/settings/developers 创建一个 OAuth App
# 在 General 设置里务必勾选 "Enable Device Flow"
# 2) 拷贝 Client ID 填入下面的命令
# 3) 运维在 CDS 启动前设置环境变量,然后重启
export CDS_GITHUB_CLIENT_ID="你的-oauth-app-client-id" # 必填
export CDS_GITHUB_CLIENT_SECRET="web-flow-用-可选" # 可选
export CDS_SECRET_KEY="$(openssl rand -hex 32)" # 可选,加密 token
# 然后重启 CDS(或者在宿主机上 systemctl restart cds)
./exec_cds.sh restart