Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/triggers/github/webhook-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ async function executeGitHubAgent(
): Promise<void> {
const trelloApiKey = await getProjectSecret(project.id, 'TRELLO_API_KEY').catch(() => '');
const trelloToken = await getProjectSecret(project.id, 'TRELLO_TOKEN').catch(() => '');
const githubToken = await getProjectSecret(project.id, 'GITHUB_TOKEN');
const agentGitHubToken = await getAgentCredential(project.id, result.agentType, 'GITHUB_TOKEN');
const githubToken = agentGitHubToken || (await getProjectSecret(project.id, 'GITHUB_TOKEN'));

const restoreLlmEnv = await injectLlmApiKeys(project.id);

Expand Down