From ae86d8a524be9f7a0192a60122ee2adb8674d5e6 Mon Sep 17 00:00:00 2001 From: David Turner Date: Tue, 16 Sep 2025 16:07:39 -0400 Subject: [PATCH 1/3] Removed header with credential info from step 1 fetch --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index b653a0f..9a5c34a 100644 --- a/index.js +++ b/index.js @@ -47,7 +47,7 @@ async function run() { // 1. Get the jobs that belong to this workflow const jobsRes = await fetch( `https://circleci.com/api/v2/workflow/${workflowId}/job`, - { headers: { 'Circle-Token': apiToken } } + { } ); const jobs = await jobsRes.json(); if (!jobs.items.length) { From e2731ef6c0342b81c2dec54ed450c5699020b2f8 Mon Sep 17 00:00:00 2001 From: David Turner Date: Tue, 16 Sep 2025 16:13:05 -0400 Subject: [PATCH 2/3] Update index.js --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index 9a5c34a..f43a9dc 100644 --- a/index.js +++ b/index.js @@ -46,8 +46,7 @@ async function run() { // 1. Get the jobs that belong to this workflow const jobsRes = await fetch( - `https://circleci.com/api/v2/workflow/${workflowId}/job`, - { } + `https://circleci.com/api/v2/workflow/${workflowId}/job` ); const jobs = await jobsRes.json(); if (!jobs.items.length) { From c71cf4e3ad743d33fa47be1ed872a2c13b9faf28 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Tue, 16 Sep 2025 20:13:54 +0000 Subject: [PATCH 3/3] [autofix.ci] apply automated fixes --- dist/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 28c51c5..4141382 100644 --- a/dist/index.js +++ b/dist/index.js @@ -35863,8 +35863,7 @@ async function run() { // 1. Get the jobs that belong to this workflow const jobsRes = await fetch( - `https://circleci.com/api/v2/workflow/${workflowId}/job`, - { headers: { 'Circle-Token': apiToken } } + `https://circleci.com/api/v2/workflow/${workflowId}/job` ); const jobs = await jobsRes.json(); if (!jobs.items.length) {