File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,10 @@ def check_dependency(
131
131
rprint (f"Cannot find { dependency } in { project .name } ." )
132
132
raise typer .Exit (code = 1 ) from e
133
133
134
- asyncio .run (dep .save_data ())
134
+ if isinstance (dep , GitHubDependency ):
135
+ asyncio .run (dep .save_data (gh_pat = GH_PAT ))
136
+ else :
137
+ asyncio .run (dep .save_data ())
135
138
136
139
title = Text ("Dependency Check" , style = "bold" )
137
140
needs_update = dep .needs_update ()
@@ -325,7 +328,11 @@ def update(
325
328
326
329
# fetch data from pypi/github
327
330
progress .update (task , description = "Fetching dependency data..." )
328
- asyncio .run (dep .save_data ())
331
+
332
+ if isinstance (dep , GitHubDependency ):
333
+ asyncio .run (dep .save_data (gh_pat = GH_PAT ))
334
+ else :
335
+ asyncio .run (dep .save_data ())
329
336
330
337
# get latest/desired version
331
338
if version is None :
You can’t perform that action at this time.
0 commit comments