// module 04 · A central security gate
Secrets, dependencies and workflow lint in the same gate
Add three checks to the central gate: gitleaks over every commit in the pull request, dependency review against GitHub's dependency graph, and actionlint on the workflows the PR changes. Each one reports only what the PR adds, and the gate writes one summary table with a count per tool. Three demo PRs fail: a fake internal token added and removed again, a dependency with a critical advisory, and a workflow that puts the PR title into a shell.
Learning Objectives
- Scan every commit of a pull request for secrets, including ones removed before the last commit
- Teach gitleaks your org's own token format with a custom rule
- Block new dependencies with high or critical advisories using the dependency graph compare API
- Lint workflow changes with actionlint and report only errors the PR adds
- Produce one job summary with a count per tool, and fail closed when a scanner breaks
This lesson is for enrolled learners
Log in, then enroll to read the full lesson, run its lab and take the quiz.
