Skip to content

Commit 853c40c

Browse files
fix: ql scan
1 parent 91cb895 commit 853c40c

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

manage_bitbucket_env.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def arg_parser() -> argparse.Namespace:
8787
)
8888
_ = group.add_argument(
8989
"-e",
90-
"--export-secret-keys",
90+
"--export-secure-keys",
9191
help="Output JSON file for exporting secured variable keys"
9292
)
9393
_ = group.add_argument(
@@ -99,7 +99,7 @@ def arg_parser() -> argparse.Namespace:
9999
_ = group.add_argument(
100100
"--import-all",
101101
dest="import_all",
102-
help="Input JSON file for importing all variables, including secret keys"
102+
help="Input JSON file for importing all variables, including secure keys"
103103
)
104104

105105
return parser.parse_args()
@@ -189,7 +189,7 @@ def export_variables(
189189
else:
190190
logger.info(
191191
"Secured variable '%s' will not be exported. "
192-
"Use --export-secret-keys for a list of secure keys.",
192+
"Use --export-secure-keys for a list of secure keys.",
193193
var['key']
194194
)
195195
logger.debug(
@@ -244,7 +244,7 @@ def export_all_variables(
244244
)
245245

246246

247-
def export_secret_keys(
247+
def export_secure_keys(
248248
workspace: str,
249249
repo_slug: str,
250250
deployment_name: str,
@@ -273,14 +273,14 @@ def export_secret_keys(
273273
)
274274
if not variables:
275275
return
276-
secret_keys = [var["key"] for var in variables if var["secured"]]
276+
secure_keys = [var["key"] for var in variables if var["secured"]]
277277
logger.debug(
278278
"Preparing to export %s secured variable keys",
279-
len(secret_keys)
279+
len(secure_keys)
280280
)
281-
count = len(secret_keys)
281+
count = len(secure_keys)
282282
with open(output_file, "w", encoding="utf-8") as f:
283-
json.dump(secret_keys, f, indent=4)
283+
json.dump(secure_keys, f, indent=4)
284284
logger.info(
285285
"Secured variable keys(%s) exported to %s",
286286
count,
@@ -413,12 +413,12 @@ def main(logger: Any):
413413
auth=auth,
414414
logger=logger
415415
)
416-
elif main_args.export_secret_keys:
417-
export_secret_keys(
416+
elif main_args.export_secure_keys:
417+
export_secure_keys(
418418
workspace=main_args.workspace,
419419
repo_slug=main_args.repo_slug,
420420
deployment_name=main_args.deployment_name,
421-
output_file=main_args.export_secret_keys,
421+
output_file=main_args.export_secure_keys,
422422
auth=auth,
423423
logger=logger
424424
)

0 commit comments

Comments
 (0)