This is an automated email from the ASF dual-hosted git repository.

rusackas pushed a commit to branch more-scraping
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/more-scraping by this push:
     new 70bb8f5b1c pull token from env var.
70bb8f5b1c is described below

commit 70bb8f5b1c224623fb1bc8d34433144c061a0c28
Author: Evan Rusackas <[email protected]>
AuthorDate: Wed Jul 17 10:01:22 2024 -0600

    pull token from env var.
---
 .github/workflows/get_star_ranking.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/get_star_ranking.py 
b/.github/workflows/get_star_ranking.py
index e558d73685..3e688f6ae9 100644
--- a/.github/workflows/get_star_ranking.py
+++ b/.github/workflows/get_star_ranking.py
@@ -1,5 +1,6 @@
 import csv
 import json
+import os
 import time
 from typing import Any, Dict, List, Optional, Tuple
 
@@ -8,7 +9,10 @@ from requests.exceptions import RequestException
 
 # Configuration
 GITHUB_API_URL = "https://api.github.com/graphql";
-GITHUB_TOKEN = ""  # Replace with your actual token
+GITHUB_TOKEN = os.getenv("GITHUB_TOKEN")  # Replace with your actual token
+if GITHUB_TOKEN is None:
+    raise ValueError("GITHUB_TOKEN environment variable not set")
+
 QUERY = """
 {
   search(query: "stars:>1", type: REPOSITORY, first: 100, after: AFTER_CURSOR) 
{

Reply via email to