From 1f8149798ef82b2894c5c034d85835eaec585c60 Mon Sep 17 00:00:00 2001 From: Luke Voelz Date: Fri, 12 Sep 2025 16:04:50 -0500 Subject: [PATCH 1/2] Update createNote.js In line with b/411423334, replace references to storing vulnerabilities with storing attestations in the Artifact Analysis documentation, including code samples. --- container-analysis/snippets/createNote.js | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/container-analysis/snippets/createNote.js b/container-analysis/snippets/createNote.js index 6abf822a2a..06c8f6333c 100644 --- a/container-analysis/snippets/createNote.js +++ b/container-analysis/snippets/createNote.js @@ -44,19 +44,10 @@ async function main( parent: formattedParent, noteId: noteId, note: { - vulnerability: { - details: [ - { - affectedCpeUri: 'foo.uri', - affectedPackage: 'foo', - affectedVersionStart: { - kind: 'MINIMUM', - }, - affectedVersionEnd: { - kind: 'MAXIMUM', - }, - }, - ], + attestation: { + hint: { + humanReadableName: attestationAuthorityName, + }, }, }, }); From afed7f8770d54731b146658a349df70e869798a6 Mon Sep 17 00:00:00 2001 From: lvoelz Date: Fri, 12 Sep 2025 16:17:39 -0500 Subject: [PATCH 2/2] Update container-analysis/snippets/createNote.js changed variable to string Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- container-analysis/snippets/createNote.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/container-analysis/snippets/createNote.js b/container-analysis/snippets/createNote.js index 06c8f6333c..179b97659c 100644 --- a/container-analysis/snippets/createNote.js +++ b/container-analysis/snippets/createNote.js @@ -46,7 +46,7 @@ async function main( note: { attestation: { hint: { - humanReadableName: attestationAuthorityName, + humanReadableName: 'my-attestation-authority', }, }, },