mirror of
https://github.com/anthropics/claude-code-action.git
synced 2026-01-23 23:14:13 +08:00
fix: update MCP server tests after removing additionalPermissions
- Change github_ci server logic to check for workflow token presence - Update test names to reflect new behavior - Fix test that was incorrectly setting workflow token
This commit is contained in:
@@ -111,10 +111,10 @@ export async function prepareMcpConfig(
|
||||
};
|
||||
}
|
||||
|
||||
// CI server is disabled by default in v1.0 (users can enable via claudeArgs)
|
||||
const hasActionsReadPermission = false;
|
||||
// CI server is included when we have a workflow token and context is a PR
|
||||
const hasWorkflowToken = !!process.env.DEFAULT_WORKFLOW_TOKEN;
|
||||
|
||||
if (context.isPR && hasActionsReadPermission) {
|
||||
if (context.isPR && hasWorkflowToken) {
|
||||
// Verify the token actually has actions:read permission
|
||||
const actuallyHasPermission = await checkActionsReadPermission(
|
||||
process.env.DEFAULT_WORKFLOW_TOKEN || "",
|
||||
|
||||
Reference in New Issue
Block a user