typeshed-internal / stub_uploader

Scripts and actions to auto-upload typeshed stubs to PyPI
Apache License 2.0
21 stars 16 forks source link

Typeshed bots to keep track of security? #141

Open Akuli opened 1 month ago

Akuli commented 1 month ago

(Related to #90)

Maybe we should create bots that notify us when a typeshed pull request affects the dependencies of popular packages? If one of those dependencies gets hacked, many people and servers will install the malware, so changing those dependencies (sometimes in surprising indirect ways) should be seen as a red flag.

Some ideas:

I am following our "convention" of using types-requests as an example of a popular package, but the same would apply to other popular packages, basically anything with more than x weekly/monthly/yearly downloads.

srittau commented 1 month ago

Maybe an even easier solution would be that the bot (or CI trigger) would just flag any PR where a third-party METADATA file was changed. Although personally, unless it's a very big PR, I think I'd notice such changes.