@@ -143,8 +143,7 @@ def _check_gh_cli(self) -> None:
143143 ['gh' , 'auth' , 'status' ],
144144 capture_output = True ,
145145 text = True ,
146- timeout = 5 ,
147- env = {** os .environ , 'GH_TOKEN' : self .token }
146+ timeout = 5
148147 )
149148 if result .returncode != 0 :
150149 print ("\n ⚠️ GitHub CLI is not authenticated!" , file = sys .stderr )
@@ -176,8 +175,7 @@ def get_authenticated_user(self) -> str:
176175 ['gh' , 'auth' , 'status' , '--json' , 'hosts' ],
177176 capture_output = True ,
178177 text = True ,
179- timeout = 5 ,
180- env = {** os .environ , 'GH_TOKEN' : os .getenv ('GH_TOKEN' )}
178+ timeout = 5
181179 )
182180 if result .returncode != 0 :
183181 try :
@@ -595,8 +593,7 @@ def _check_glab_cli(self) -> None:
595593 ['glab' , 'auth' , 'status' ],
596594 capture_output = True ,
597595 text = True ,
598- timeout = 5 ,
599- env = {** os .environ , 'GH_TOKEN' : os .getenv ('GH_TOKEN' )}
596+ timeout = 5
600597 )
601598 if result .returncode != 0 :
602599 print ("GitLab CLI not authenticated" , file = sys .stderr )
@@ -623,8 +620,7 @@ def get_authenticated_user(self) -> str:
623620 ['glab' , 'api' , '/user' ],
624621 capture_output = True ,
625622 text = True ,
626- timeout = 10 ,
627- env = {** os .environ , 'GH_TOKEN' : os .getenv ('GH_TOKEN' )}
623+ timeout = 10
628624 )
629625 if result .returncode != 0 :
630626 raise Exception ("Failed to get user info" )
0 commit comments