4 ms·
You isolate the stages which require secrets from the stages that run untrusted code. One step has access to your SSH private key and runs git clone. The next s
by plorkyeran 6y ago
You isolate the stages which require secrets from the stages that run untrusted code. One step has access to your SSH private key and runs git clone. The next step runs the actual build without access to any secrets. A third step has access to the secret key required to publish the result.
It's certainly more complicated to set up than a simple "the CI system invokes a single shell script that does everything" build, but it's not actually that complicated and every CI system I've used has supported doing this.
- IshKebab 6y agoYeah I've never seen anyone go to that much effort in practice.