Skip to content

Commit

Permalink
Fix https prefix for discovery occurrence (#65)
Browse files Browse the repository at this point in the history
* Fix https prefix for discovery occurrence

* Minor update
  • Loading branch information
yeshwanth1993 authored May 2, 2023
1 parent d621dbc commit 9d2866d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/vul/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,10 @@ func updateDiscoveryNote(ctx context.Context, parent string, discoveryNoteID str

func updateDiscoveryOcc(ctx context.Context, parent string, discoveryNoteID string, resourceURL string, c *ca.Client) error {
noteName := fmt.Sprintf("%s/notes/%s", parent, discoveryNoteID)
resourceURL = fmt.Sprintf("https://%s", resourceURL)
occ := &g.Occurrence{
Kind: g.NoteKind_DISCOVERY,
ResourceUri: fmt.Sprintf("https://%s", resourceURL),
ResourceUri: resourceURL,
NoteName: noteName,
Details: &g.Occurrence_Discovery{
Discovery: &g.DiscoveryOccurrence{
Expand Down

0 comments on commit 9d2866d

Please sign in to comment.