Skip to content

Commit 5908d5c

Browse files
author
Kasturi Narra
committed
Give warning to user if no rpm advisory is present
1 parent 4ae6183 commit 5908d5c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

scripts/advisory_publication/advisory_publication_report.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,15 @@ def get_advisories(ocp_version: str) -> dict[str, str]:
195195
if not advisories_found:
196196
raise KeyError(f"{ocp_version} OCP version advisory data not found in any YAML files from the merge request")
197197

198+
# Check if RPM advisory type is missing and log warning
199+
if 'rpm' not in advisories_found:
200+
warning_msg = (
201+
f"\033[93mWARNING: RPMS are still being released via errata, please run "
202+
f"\033[1m`sh advisory_publication_report.sh {ocp_version}`\033[0m\033[93m "
203+
f"from 4.19 branch to see if there are any CVES that effects microshift\033[0m"
204+
)
205+
print(warning_msg)
206+
198207
return advisories_found
199208

200209

0 commit comments

Comments
 (0)