File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
airbyte_cdk/cli/airbyte_cdk Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -466,7 +466,8 @@ def _print_ci_secret_mask_for_string(secret: str) -> None:
466466 For multi-line secrets, we must print a secret mask for each line separately.
467467 """
468468 for line in secret .splitlines ():
469- print (f"::add-mask::{ line !s} " )
469+ if line .strip (): # Skip empty lines
470+ print (f"::add-mask::{ line !s} " )
470471
471472
472473def _print_ci_secret_mask_for_value (value : Any ) -> None :
@@ -491,7 +492,8 @@ def _print_ci_secret_mask_for_value(value: Any) -> None:
491492 # For any other types besides dict and list, we convert to string and mask each line
492493 # separately to handle multi-line secrets (e.g. private keys).
493494 for line in str (value ).splitlines ():
494- _print_ci_secret_mask_for_string (line )
495+ if line .strip (): # Skip empty lines
496+ _print_ci_secret_mask_for_string (line )
495497
496498
497499def _print_ci_secrets_masks_for_config (
You can’t perform that action at this time.
0 commit comments