Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify a user agent for OSV.dev #4029

Open
spencerschrock opened this issue Apr 15, 2024 · 0 comments
Open

Specify a user agent for OSV.dev #4029

spencerschrock opened this issue Apr 15, 2024 · 0 comments
Labels
check/Vulnerabilities good first issue Good for newcomers kind/enhancement New feature or request

Comments

@spencerschrock
Copy link
Contributor

The Scorecard weekly cron makes many API calls to osv.dev. The OSV team asked if we specify a unique user agent, and we don't.
It would be good to set one. There is a RequestUserAgent variable we can set in the osv package. https://pkg.go.dev/github.com/google/osv-scanner@v1.7.1/pkg/osv#pkg-variables.

osv-scanner sets user agents like:
osv-scanner/1.7.1 (where v1.7.1 is the osv-scanner version)

It would be nice if scorecard set a user agent for both our CLI (scorecard/{version}) and our weekly cron workers (scorecard-cron/{version}). We have version info available to the various binaries via version.GetVersionInfo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
check/Vulnerabilities good first issue Good for newcomers kind/enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

1 participant