Lion Cipher Lab

Review your main branch's protection or ruleset with an expected-versus-actual check (CI/CD assessment 3 of 7)

Why it matters

Almost every supply-chain attack on a pipeline ends the same way: someone's change reaches the branch that gets built and shipped. Branch protection and rulesets are the control that stands between a stolen account, a rushed commit or a compromised workflow and your main branch. They are also easy to get subtly wrong: protection that administrators can bypass, required checks that never run, or a ruleset left in evaluate mode so it logs and blocks nothing. An assessor reads the actual settings rather than trusting that 'we have branch protection'.

What you'll learn

Steps in this lab

  1. The rule first: read your own branch before you change it
  2. Two mechanisms, and the one trap
  3. Write the expectations first, then read the actual settings
  4. The checking script, with samples for both mechanisms
  5. Run it on your own branch, then close the gaps
  6. The defender's view: protection is a log and a gate

Open the full interactive lab →

Keep learning