File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -308,6 +308,12 @@ def _get_base_parser(add_help: bool = True) -> argparse.ArgumentParser:
308
308
action = "store_true" ,
309
309
default = os .getenv ("GITLAB_SKIP_LOGIN" ),
310
310
)
311
+ parser .add_argument (
312
+ "--no-mask-credentials" ,
313
+ help = "Don't mask credentials in debug mode" ,
314
+ dest = "mask_credentials" ,
315
+ action = "store_false" ,
316
+ )
311
317
return parser
312
318
313
319
@@ -395,6 +401,7 @@ def main() -> None:
395
401
gitlab_resource = args .gitlab_resource
396
402
resource_action = args .resource_action
397
403
skip_login = args .skip_login
404
+ mask_credentials = args .mask_credentials
398
405
399
406
args_dict = vars (args )
400
407
# Remove CLI behavior-related args
@@ -406,6 +413,7 @@ def main() -> None:
406
413
"gitlab" ,
407
414
"gitlab_resource" ,
408
415
"job_token" ,
416
+ "mask_credentials" ,
409
417
"oauth_token" ,
410
418
"output" ,
411
419
"pagination" ,
@@ -425,7 +433,7 @@ def main() -> None:
425
433
try :
426
434
gl = gitlab .Gitlab .merge_config (vars (options ), gitlab_id , config_files )
427
435
if debug :
428
- gl .enable_debug ()
436
+ gl .enable_debug (mask_credentials = mask_credentials )
429
437
if not skip_login and (gl .private_token or gl .oauth_token ):
430
438
gl .auth ()
431
439
except Exception as e :
You can’t perform that action at this time.
0 commit comments