Skip to content

Commit cff0d81

Browse files
fix(container-analysis): Update createNote.js to replace vulnerability with attestation (#4182)
Update createNote.js to replace references to storing vulnerabilities with storing attestations in the Artifact Analysis documentation, including code samples. The updated code sample will appear in https://cloud.google.com/artifact-analysis/docs/create-notes-occurrences and any other topics that reference it in the google cloud documentation. Additional pull requests will be sent to update the equivalent code samples for Go, Java, Python, and Ruby. --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 98439c7 commit cff0d81

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

container-analysis/snippets/createNote.js

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,10 @@ async function main(
4444
parent: formattedParent,
4545
noteId: noteId,
4646
note: {
47-
vulnerability: {
48-
details: [
49-
{
50-
affectedCpeUri: 'foo.uri',
51-
affectedPackage: 'foo',
52-
affectedVersionStart: {
53-
kind: 'MINIMUM',
54-
},
55-
affectedVersionEnd: {
56-
kind: 'MAXIMUM',
57-
},
58-
},
59-
],
47+
attestation: {
48+
hint: {
49+
humanReadableName: 'my-attestation-authority',
50+
},
6051
},
6152
},
6253
});

0 commit comments

Comments
 (0)