Skip to content

Commit

Permalink
fix token
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaucasau committed May 15, 2024
1 parent fb2dfce commit 85da1ea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/lib/links/ExternalLink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ function getHeaders(link: string) {
};

if (link.startsWith("https://github.com")) {
console.log(process.env.GITHUB_TOKEN);
headers["Authorization"] = process.env.GITHUB_TOKEN || "";
const ghToken = process.env.GITHUB_TOKEN;
console.log(ghToken);
headers["Authorization"] = ghToken ? `token ${ghToken}` : "";
}

return headers;
Expand Down

0 comments on commit 85da1ea

Please sign in to comment.