Skip to content

Commit

Permalink
Do not update CVEs from before 2023 through GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
maltejur authored and tomrittervg committed Jan 19, 2024
1 parent 923d75e commit ace30f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion foundation_security_advisories/common_cve.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,10 @@ def try_update_published_cve(local_cve: CVEAdvisory, local_date: int, remote_dat
if local_cve.year < 2023:
if not prompt_yes_no(
f"\nThis CVE lies before the cutoff year 2023. Should the content still be updated for {local_cve.id}?",
default=True, # CHANGEME
default=False,
):
print(f"Skipping {local_cve.id} because it lies before the cutoff year")
touch_cve_id(local_cve.id)
return False
else:
if not prompt_yes_no(f"\nShould this content be updated for {local_cve.id}?"):
Expand Down

0 comments on commit ace30f8

Please sign in to comment.