propagate GITHUB_REPOSITORY

This commit is contained in:
ssalbdivad
2025-10-09 17:26:01 -04:00
parent a1f87ce118
commit 8fd0328109
3 changed files with 13 additions and 2 deletions
+6 -1
View File
@@ -25506,6 +25506,10 @@ var core = __toESM(require_core(), 1);
// mcp/config.ts
var actionPath = process.env.GITHUB_ACTION_PATH || process.cwd();
function createMcpConfig(githubInstallationToken) {
const githubRepository = process.env.GITHUB_REPOSITORY;
if (!githubRepository) {
throw new Error("GITHUB_REPOSITORY environment variable is required for MCP GitHub integration");
}
return JSON.stringify(
{
mcpServers: {
@@ -25513,7 +25517,8 @@ function createMcpConfig(githubInstallationToken) {
command: "node",
args: [`${actionPath}/mcp/server.ts`],
env: {
GITHUB_INSTALLATION_TOKEN: githubInstallationToken
GITHUB_INSTALLATION_TOKEN: githubInstallationToken,
GITHUB_REPOSITORY: githubRepository
}
}
}