Unverified 提交 fddc227b authored 作者: Will Chen's avatar Will Chen 提交者: GitHub

Add workflow scope for github (#101)

上级 2f18622d
...@@ -25,7 +25,7 @@ const logger = log.scope("github_handlers"); ...@@ -25,7 +25,7 @@ const logger = log.scope("github_handlers");
const GITHUB_CLIENT_ID = process.env.GITHUB_CLIENT_ID || "Ov23liWV2HdC0RBLecWx"; const GITHUB_CLIENT_ID = process.env.GITHUB_CLIENT_ID || "Ov23liWV2HdC0RBLecWx";
const GITHUB_DEVICE_CODE_URL = "https://github.com/login/device/code"; const GITHUB_DEVICE_CODE_URL = "https://github.com/login/device/code";
const GITHUB_ACCESS_TOKEN_URL = "https://github.com/login/oauth/access_token"; const GITHUB_ACCESS_TOKEN_URL = "https://github.com/login/oauth/access_token";
const GITHUB_SCOPES = "repo,user"; // Define the scopes needed const GITHUB_SCOPES = "repo,user,workflow"; // Define the scopes needed
// --- State Management (Simple in-memory, consider alternatives for robustness) --- // --- State Management (Simple in-memory, consider alternatives for robustness) ---
interface DeviceFlowState { interface DeviceFlowState {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论