Skip to content

Commit 1f81497

Browse files
committed
Update createNote.js
In line with b/411423334, replace references to storing vulnerabilities with storing attestations in the Artifact Analysis documentation, including code samples.
1 parent 98439c7 commit 1f81497

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: attestationAuthorityName,
50+
},
6051
},
6152
},
6253
});

0 commit comments

Comments
 (0)