From e3c3b9482bfa94d53150738b8259076ed42e8ecd Mon Sep 17 00:00:00 2001 From: Luke Voelz Date: Fri, 12 Sep 2025 16:37:24 -0500 Subject: [PATCH] Update create_note.py --- containeranalysis/snippets/create_note.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/containeranalysis/snippets/create_note.py b/containeranalysis/snippets/create_note.py index 66fb8878808..da0af4913c0 100644 --- a/containeranalysis/snippets/create_note.py +++ b/containeranalysis/snippets/create_note.py @@ -27,15 +27,10 @@ def create_note(note_id: str, project_id: str) -> types.grafeas.Note: grafeas_client = client.get_grafeas_client() project_name = f"projects/{project_id}" note = { - "vulnerability": { - "details": [ - { - "affected_cpe_uri": "your-uri-here", - "affected_package": "your-package-here", - "affected_version_start": {"kind": Version.VersionKind.MINIMUM}, - "fixed_version": {"kind": Version.VersionKind.MAXIMUM}, - } - ] + "attestation": { + "hint": { + "human_readable_name": "my-attestation-authority", + } } } response = grafeas_client.create_note(