Someone wrote the staging deploy token straight into ci.yml. Ops revoked it, which is the first thing to do with a leaked token: deleting it from the file doesn't remove it from git history. Every deploy fails now, and the new token is in ~/staging-token.txt. The repository's own DEPLOY_TOKEN secret is production's, not staging's.
Make the pipeline safe:
- No token written in the repository.
- Deploys to staging work again, from
mainonly. - When the tests fail, the team is told with
./notify.sh.
Sam has two branches to check them with: cheaper-dragons passes its tests, and new-goblin doesn't. Each needs your workflow merged in before it shows anything.
Everything you need is in Chapters 1 to 4.
Objectives
- No token in the repository.
- Deploy to staging.
- Only main deploys.
- Tell the team.