Interview Prep/CI/CD/Secrets and Credentials

What practices keep API tokens (PATs) used by CI under control?

IntermediateProductionSecrets and Credentials
Answer

Avoid personal access tokens: use GitHub Apps or fine-grained tokens, GitLab project/group access tokens or deploy tokens with minimal scopes, and machine identities rather than a person's account (people leave). Set short expirations, store in the secret manager, inventory tokens, alert on expiring and unused tokens, and remove tokens when a repo is archived.

All CI/CD questions

More on Secrets and Credentials