Skip to content

Commit d36620b

Browse files
authored
Merge pull request #1 from DavidT3/bug/lengthOfUndefinedError
Removed header with credential info from step 1 fetch
2 parents c98f1f5 + ae86d8a commit d36620b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ async function run() {
4747
// 1. Get the jobs that belong to this workflow
4848
const jobsRes = await fetch(
4949
`https://circleci.com/api/v2/workflow/${workflowId}/job`,
50-
{ headers: { 'Circle-Token': apiToken } }
50+
{ }
5151
);
5252
const jobs = await jobsRes.json();
5353
if (!jobs.items.length) {

0 commit comments

Comments
 (0)