Skip to content

Commit

Permalink
fix: require GITHUB_TOKEN environment variable in getData function
Browse files Browse the repository at this point in the history
  • Loading branch information
JeelRajodiya committed Feb 6, 2025
1 parent 61c0de0 commit 5edede7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/tools/extract-tools-github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ dotenv.config();
* @throws {Error} If there is an error fetching the data.
*/
export async function getData(): Promise<any> {
if (!process.env.GITHUB_TOKEN) {
throw new Error('GITHUB_TOKEN environment variable is required');
}
// eslint-disable-next-line no-useless-catch
try {
const allItems = [];
Expand Down

0 comments on commit 5edede7

Please sign in to comment.