Skip to content

Commit 89dd8a0

Browse files
committed
[RR] Reenable forced FIPS checking.
A previous commit reverted the `if fips` check removal. Reverting that additionaly if, and leaving the rest alone.
1 parent e3ad46c commit 89dd8a0

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

rolling-release-update.py

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -249,22 +249,21 @@ def check_for_fips_protected_changes(repo, branch, common_tag):
249249
print("[rolling release update] Common tag sha: ", common_sha)
250250
print(repo.git.show('--pretty="%H %s"', "-s", common_sha.decode()))
251251

252-
if "fips" in rolling_product:
253-
print("[rolling release update] Checking for FIPS protected changes between the common tag and HEAD")
254-
shas_to_check = check_for_fips_protected_changes(repo, args.new_base_branch, common_sha)
255-
if shas_to_check and args.fips_override is False:
256-
for sha, dir in shas_to_check.items():
257-
print(f"## Commit {sha.decode()}")
258-
print("'''")
259-
dir_list = []
260-
for d in dir:
261-
dir_list.append(d.decode())
262-
print(repo.git.show(sha.decode(), dir_list))
263-
print("'''")
264-
print("[rolling release update] FIPS protected changes found between the common tag and HEAD")
265-
print("[rolling release update] Please Contact the CIQ FIPS / Security team for further instructions")
266-
print("[rolling release update] Exiting")
267-
exit(1)
252+
print("[rolling release update] Checking for FIPS protected changes between the common tag and HEAD")
253+
shas_to_check = check_for_fips_protected_changes(repo, args.new_base_branch, common_sha)
254+
if shas_to_check and args.fips_override is False:
255+
for sha, dir in shas_to_check.items():
256+
print(f"## Commit {sha.decode()}")
257+
print("'''")
258+
dir_list = []
259+
for d in dir:
260+
dir_list.append(d.decode())
261+
print(repo.git.show(sha.decode(), dir_list))
262+
print("'''")
263+
print("[rolling release update] FIPS protected changes found between the common tag and HEAD")
264+
print("[rolling release update] Please Contact the CIQ FIPS / Security team for further instructions")
265+
print("[rolling release update] Exiting")
266+
exit(1)
268267

269268
print("[rolling release update] Checking out old rolling branch: ", args.old_rolling_branch)
270269
repo.git.checkout(args.old_rolling_branch)

0 commit comments

Comments
 (0)