CI/CD, GitOps & Delivery
Branch protection
Protect the branch that deploys with platform rules for pull requests, reviews and checks, so an urgent push cannot skip the controls the team agreed, and confirm the live settings with a read command.
What you will be able to do
- Explain what branch protection rules enforce on pushes and merges.
- Decide whether admins are exempt from the release branch rules, and record the reason.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in CI/CD, GitOps & Delivery
- Secret maskingIntermediate · 4 min
Keep secrets out of logs, understand that masking matches only the exact stored value, and rotate any secret that may have appeared in printed output, since masking…
- OIDC workload credentialsIntermediate · 4 min
Use OIDC to exchange a short-lived identity token for cloud access, and narrow the trust rule to one repository and branch so no other workflow can use it.
- Required checksIntermediate · 4 min
Name each required check exactly as the workflow reports it, and check the pull request's check list, so a rename or path filter does not block merges forever.
- Reproducible buildsIntermediate · 4 min
Make a build reproducible by fixing its inputs and environment, then prove it by building twice and comparing hashes, using a diff tool when they differ.
- SBOM attestationsIntermediate · 5 min
An SBOM attestation is a signed statement that binds a list of image components to one exact image digest, so the list can be checked before deploy.
- SLSA basicsAdvanced · 4 min
SLSA provenance is a signed build record that says what artifact was made, by which builder, from which source, so consumers can check where software came from.