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

// module 04 · A central security gate

Rolling out a gate: audit, warn, block, and exceptions that expire

A gate that blocks on day one, on findings nobody measured, gets switched off. This lesson gives the central gate three modes (audit records, warn annotates, block fails), measures what it finds across the fleet from its run artifacts, and then moves every repo to block. Exceptions live in a file the security team owns, each with an owner and a date; when the date passes, the gate fails until someone fixes the code or approves a new date.

  • Lesson 14 of 34

Learning Objectives

  • Roll a new gate version out in audit mode and move it to block with the same script
  • Measure findings per repo and per tool from the gate's artifacts before turning on blocking
  • Write exceptions with an owner, a reason and an expiry date that the gate enforces
  • Make sure only the security team can approve an exception, and see what that still leaves open
  • Show an expired exception failing a pull request that has nothing to do with it

This lesson is for enrolled learners

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