Lesson 6 of 12 - CI/CD: from commit to production
Secrets in CI without leaking them
By Branko Petric - Updated - About 7 min - Full access
The short answer
CI needs secrets to push images and deploy, and CI logs are a common place for them to leak. Keep secrets in the CI secret store, pass them as environment variables, never print them, give each token only the access its job needs, and never run untrusted pull request code with secrets available.
Want the bigger picture? This lesson maps to this step of the DevOps roadmap.