Skip to content

Commit

Permalink
fix: use access token when read chain info from git
Browse files Browse the repository at this point in the history
  • Loading branch information
ducphamle2 committed Sep 11, 2024
1 parent ebf3372 commit 55fccfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/common/src/chain-infos/chain-info-reader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class ChainInfoReaderFromGit implements ChainInfoReader {
}
};
if (this.accessToken) {
options.headers["Authorization"] = "Bearer <YOUR-TOKEN>";
options.headers["Authorization"] = `Bearer ${this.accessToken}`;
options.headers["X-GitHub-Api-Version"] = "2022-11-28";
}
const response = await (
Expand Down

0 comments on commit 55fccfd

Please sign in to comment.