= {
github_list_workflow_runs_v2: githubListWorkflowRunsV2Tool,
github_get_workflow_run: githubGetWorkflowRunTool,
github_get_workflow_run_v2: githubGetWorkflowRunV2Tool,
+ /** Internal to Pi Babysit — see the review-thread tools above. */
+ github_job_logs: githubJobLogsTool,
+ github_status_check_rollup: githubStatusCheckRollupTool,
github_cancel_workflow_run: githubCancelWorkflowRunTool,
github_cancel_workflow_run_v2: githubCancelWorkflowRunV2Tool,
github_rerun_workflow: githubRerunWorkflowTool,
diff --git a/apps/sim/tools/types.ts b/apps/sim/tools/types.ts
index 91426b9ad6c..c3a190fa630 100644
--- a/apps/sim/tools/types.ts
+++ b/apps/sim/tools/types.ts
@@ -170,6 +170,13 @@ export interface ToolConfig {
headers: (params: P) => Record
body?: (params: P) => Record | string | FormData | undefined
retry?: ToolRetryConfig
+ /**
+ * Drop the `Authorization` header when following a redirect. Set this on any
+ * tool whose endpoint redirects to a different origin carrying its own
+ * signed URL — GitHub's Actions log and artifact downloads are the canonical
+ * case — so the API credential is never sent to the storage host.
+ */
+ stripAuthOnRedirect?: boolean
}
// Post-processing (optional) - allows additional processing after the initial request
diff --git a/apps/sim/tools/utils.ts b/apps/sim/tools/utils.ts
index 229a5830795..dce3059ddac 100644
--- a/apps/sim/tools/utils.ts
+++ b/apps/sim/tools/utils.ts
@@ -83,6 +83,7 @@ export interface RequestParams {
body?: string
timeout?: number
proxyUrl?: string
+ stripAuthOnRedirect?: boolean
}
/**
@@ -143,7 +144,15 @@ export function formatRequestParams(tool: ToolConfig, params: Record