Skip to content
Draft
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
7 changes: 7 additions & 0 deletions updater/osv/osv.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ var (
//doc:url updater
const DefaultURL = `https://osv-vulnerabilities.storage.googleapis.com/`

// AliasBaseURL is the URL to prepend to aliases to convert them into links.
const aliasBaseURL = `https://osv.dev/vulnerability/`

// Factory is the UpdaterSetFactory exposed by this package.
//
// [Configure] must be called before [UpdaterSet]. See the [FactoryConfig] type.
Expand Down Expand Up @@ -547,6 +550,10 @@ func (e *ecs) Insert(ctx context.Context, skipped *stats, name string, a *adviso
}
b.WriteString(ref.URL)
}
for _, alias := range a.Aliases {
b.WriteByte(' ')
b.WriteString(aliasBaseURL + alias)
}
proto.Links = b.String()
for i := range a.Affected {
af := &a.Affected[i]
Expand Down
Loading