Add workflow scope for github (#101)

This commit is contained in:
Will Chen
2025-05-06 13:00:47 -07:00
committed by GitHub
parent 2f18622dd3
commit fddc227b4a

View File

@@ -25,7 +25,7 @@ const logger = log.scope("github_handlers");
const GITHUB_CLIENT_ID = process.env.GITHUB_CLIENT_ID || "Ov23liWV2HdC0RBLecWx";
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_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) ---
interface DeviceFlowState {