Skip to content

Commit 3218a64

Browse files
committed
N803 Argument name HASH_N should be lowercase
1 parent bbfaa6e commit 3218a64

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ci/security-scan/quay_security_analysis.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def generate_markdown_table(branch_dictionary):
6969
return markdown_data
7070

7171

72-
def process_image(image, commit_id_path, RELEASE_VERSION_N, HASH_N):
72+
def process_image(image, commit_id_path, release_version_n, hash_n):
7373
with open(commit_id_path, "r") as params_file:
7474
img_line = next(line for line in params_file if re.search(f"{image}=", line))
7575
img = img_line.split("=")[1].strip()
@@ -83,10 +83,10 @@ def process_image(image, commit_id_path, RELEASE_VERSION_N, HASH_N):
8383

8484
regex = ""
8585

86-
if RELEASE_VERSION_N == "":
87-
regex = f"^{src_tag}-(\\d+-)?{HASH_N}$"
86+
if release_version_n == "":
87+
regex = f"^{src_tag}-(\\d+-)?{hash_n}$"
8888
else:
89-
regex = f"^{src_tag}-{RELEASE_VERSION_N}-\\d+-{HASH_N}$"
89+
regex = f"^{src_tag}-{release_version_n}-\\d+-{hash_n}$"
9090

9191
latest_tag_cmd = f"skopeo inspect docker://{img} | jq -r --arg regex \"{regex}\" '.RepoTags | map(select(. | test($regex))) | .[0]'"
9292
latest_tag = subprocess.check_output(latest_tag_cmd, shell=True, text=True).strip()

0 commit comments

Comments
 (0)