The OS signature is separate from the reproducible build, and the secret key used for attestation is in a "trusted platform module" - a little computer running firmware the user cannot modify and can only interact with in limited ways.