def update_published_cve()

in foundation_security_advisories/common_cve.py [0:0]


def update_published_cve(cve_id: str, cve_json: dict):
    """CVE Servies: Update the content of the given CVE-ID with the given data in CVE JSON 5.1 format."""
    print(f"Updating {cve_id}")
    try:
        cve_api.update_published(cve_id, cve_json)
        # We need to update the timestamp on the CVE-ID itself, because that is what we use
        # later to check for modified files.
        touch_cve_id(cve_id)
    except HTTPError as e:
        raise Exception(f"Failed to update {cve_id}, {e.response.text}")