HackyJS CoursesMerge Gates: Hardening a GitHub Org for AI-Written Code

// module 03 · Enforcement developers can't turn off

Secret scanning and push protection across the org

Turn on secret scanning and push protection for every repo with one code security configuration, make it the default for new repos, and enforce it so repo admins can't switch it off. Then look at what it actually catches on a Free org: no alert for the lab's leaked internal token, generic patterns unavailable, and a push of a token-shaped string that goes straight through. You learn the bypass flow, and which parts need paid Secret Protection.

  • Lesson 10 of 34

Learning Objectives

  • Create a custom code security configuration that enables only the secret features you want
  • Attach it to every repo, make it the default for new repos, and enforce it against repo admins
  • Explain which secret types GitHub detects on a Free public repo, and why the lab token got no alert
  • Describe the push protection bypass flow and what each bypass reason leaves behind
  • Say what Secret Protection adds on Team and Enterprise, and how it is billed

This lesson is for enrolled learners

Log in, then enroll to read the full lesson, run its lab and take the quiz.