Skip to content

Commit 5d358ff

Browse files
Removed the headers argument passed to 'fetch' in step one (#85)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent c98f1f5 commit 5d358ff

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

dist/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35863,8 +35863,7 @@ async function run() {
3586335863

3586435864
// 1. Get the jobs that belong to this workflow
3586535865
const jobsRes = await fetch(
35866-
`https://circleci.com/api/v2/workflow/${workflowId}/job`,
35867-
{ headers: { 'Circle-Token': apiToken } }
35866+
`https://circleci.com/api/v2/workflow/${workflowId}/job`
3586835867
);
3586935868
const jobs = await jobsRes.json();
3587035869
if (!jobs.items.length) {

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ async function run() {
4646

4747
// 1. Get the jobs that belong to this workflow
4848
const jobsRes = await fetch(
49-
`https://circleci.com/api/v2/workflow/${workflowId}/job`,
50-
{ headers: { 'Circle-Token': apiToken } }
49+
`https://circleci.com/api/v2/workflow/${workflowId}/job`
5150
);
5251
const jobs = await jobsRes.json();
5352
if (!jobs.items.length) {

0 commit comments

Comments
 (0)