refactor: rename ACTIONS_TOKEN to DEFAULT_WORKFLOW_TOKEN (#385)

Updated all references from ACTIONS_TOKEN to DEFAULT_WORKFLOW_TOKEN to match
the naming convention used in action.yml where the GitHub token is passed as
DEFAULT_WORKFLOW_TOKEN environment variable.
This commit is contained in:
Ashwin Bhat
2025-08-02 21:26:52 -07:00
committed by GitHub
parent d829b4d14b
commit d66adfb7fa
2 changed files with 14 additions and 14 deletions

View File

@@ -118,7 +118,7 @@ export async function prepareMcpConfig(
if (context.isPR && hasActionsReadPermission) {
// Verify the token actually has actions:read permission
const actuallyHasPermission = await checkActionsReadPermission(
process.env.ACTIONS_TOKEN || "",
process.env.DEFAULT_WORKFLOW_TOKEN || "",
owner,
repo,
);
@@ -138,7 +138,7 @@ export async function prepareMcpConfig(
],
env: {
// Use workflow github token, not app token
GITHUB_TOKEN: process.env.ACTIONS_TOKEN,
GITHUB_TOKEN: process.env.DEFAULT_WORKFLOW_TOKEN,
REPO_OWNER: owner,
REPO_NAME: repo,
PR_NUMBER: context.entityNumber?.toString() || "",