So what? Ultimately the trust model is supposed to be there to validate that this latest blob of code is coming from the same source as the last blob of code for the same project, authenticated with the same public key. And that's all it is telling you, and all that it can tell you, whether the attestation is generated during a Github workflow or by a program running on my personal computer that you can't see. It is not telling you that this latest blob of code is safe and free from problems. It's just telling you that it comes from the same source.
The average person using GPG isn’t actually providing me much evidence in that regard, given the number of ways to have technically used a GPG key to sign an artifact that aren’t secure.
That's easy to handle: if the signature isn't secure, it doesn't count as an attestation. I have no problem with putting the onus on the person doing the signing to do it right. But at present doing it right on your own is not even an option. Only going through one of the tech giants is.
They can't. But they can't tell for sure if large tech corporations are doing that either. Data breaches are a thing. Auditing Github workflows doesn't prevent them.
If the PGP key was generated on a yubikey, then the owner of the key can generate and publish an attestation certificate[0][1], and then anybody (including PyPI, I assume) can verify and "gold star" artifacts signed by gpg keys with verified attestations. Pulling a private key off a yubikey isn't super easy, at least not that I know of. Maybe other hardware keys can do similar things?
Seems more straightforward than custom stuff built on OIDC, but I'm not a security guy, so maybe I'm missing something?
But the workflow engine implementation? I don't know how much of it is open source, but I am sure nobody external can audit what Microsoft really runs there. Another company starting with M has just been fined for accessing users' photos. So I would not be 100% surprised if Microsoft changed/amended some user code before executing it or interpreted it in an unpublished way e. g. "for security reasons"