That happens all the time. Who builds the docker images you are using?
> You've added another link in your software supply chain. How do you know they haven't inserted malware?
You're installing untrusted random packages from PyPI. There are many much weaker points than Astral giving you malware for fun.
FYI there are two parties you are talking about: Astral, and GitHub too (if you don't trust Microsoft).