Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 5 additions & 14 deletions container_registry/container_analysis/create_note.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,11 @@ func createNote(noteID, projectID string) (*grafeaspb.Note, error) {
Parent: projectName,
NoteId: noteID,
Note: &grafeaspb.Note{
Type: &grafeaspb.Note_Vulnerability{
// The 'Vulnerability' field can be modified to contain information about your vulnerability.
Vulnerability: &grafeaspb.VulnerabilityNote{
Details: []*grafeaspb.VulnerabilityNote_Detail{
{
AffectedCpeUri: "your-uri-here",
AffectedPackage: "your-package-here",
AffectedVersionStart: &grafeaspb.Version{
Kind: grafeaspb.Version_MINIMUM,
},
AffectedVersionEnd: &grafeaspb.Version{
Kind: grafeaspb.Version_MAXIMUM,
},
},
Type: &grafeaspb.Note_Attestation{
// The "Attestation" field can be modified to contain information about your attestation
Attestation: &grafeaspb.AttestationNote{
Hint: &grafeaspb.AttestationNote_Hint{
HumanReadableName: "my-attestation-authority",
},
},
},
Expand Down
Loading