You're talking about creating reproducible builds - which is a good idea, but in most cases you will still need to deliver that binary somewhere.
That typically requires authentication, whether you're deploying to kubernetes or copying the files somewhere using scp, etc
So either your laptop or the ci system needs some level of secrets present to put the artifact in the correct place