Skip to content

Commit 7e8668f

Browse files
fix: s/GITHUB_ACCESS_TOKEN/GH_ACCESS_TOKEN
1 parent cda8638 commit 7e8668f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gfi/populate.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def get_repository_info(identifier: RepositoryIdentifier) -> Optional[Repository
6767
logger.info("Getting info for {}/{}", owner, name)
6868

6969
# create a logged in GitHub client
70-
client = login(token=getenv("GITHUB_ACCESS_TOKEN"))
70+
client = login(token=getenv("GH_ACCESS_TOKEN"))
7171

7272
info: RepositoryInfo = {}
7373

@@ -139,8 +139,8 @@ def get_repository_info(identifier: RepositoryIdentifier) -> Optional[Repository
139139
raise RuntimeError("No config data file found. Exiting.")
140140

141141
# if the GitHub Access Token isn't found, raise an error
142-
if not getenv("GITHUB_ACCESS_TOKEN"):
143-
raise RuntimeError("Access token not present in the env variable `GITHUB_ACCESS_TOKEN`")
142+
if not getenv("GH_ACCESS_TOKEN"):
143+
raise RuntimeError("Access token not present in the env variable `GH_ACCESS_TOKEN`")
144144

145145
REPOSITORIES = []
146146
TAGS: Counter = Counter()

0 commit comments

Comments
 (0)