opensource-observer / oso

Measuring the impact of open source software
https://opensource.observer
Apache License 2.0
74 stars 16 forks source link

Validate crates package ownership #2381

Open ryscheng opened 1 month ago

ryscheng commented 1 month ago

What is it?

If a user enters a crate into oss-directory, we should validate ownership first in our GitHub app.

We can either use the Crates API here https://doc.rust-lang.org/cargo/reference/registry-web-api.html#owners

Or if we need to, we can use a database dump in our BQ https://github.com/opensource-observer/oso/issues/2380

ryscheng commented 1 month ago

FYI, the API is rate limited to 1 request per second https://crates.io/data-access

They aggressively block if you abuse