Skip to content

allow library users to specify a user agent #2420

@spencerschrock

Description

@spencerschrock

osv-scanner v1 allowed library users to specify a user agent via the RequestUserAgent variable.
https://pkg.go.dev/github.com/google/[email protected]/pkg/osv#RequestUserAgent

RequestUserAgent was deleted in #1470 and the user agent is now hardcoded as osv-scanner_scan/<version>

// Online Mode
// -----------
// --- Vulnerability Matcher ---
externalAccessors.VulnMatcher = osvmatcher.New(5*time.Minute, "osv-scanner_scan/"+version.OSVVersion, actions.HTTPClient)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions