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

// module 09 · Running the program

Exceptions and bypasses you can audit

Every control in this course has a way around it. A finding can be accepted with an exception file, and an org owner can merge over a failing gate or a missing review with `--admin`. Both are fine when someone decided it on purpose, wrote down why and set an end date. This lesson collects every exception file in the fleet into one register with owners and expiry dates, lists every ruleset bypass from the rule insights API with the rules it skipped, checks whether each bypass has a written reason, and turns that into a short policy and a weekly review.

  • Lesson 30 of 34

Learning Objectives

  • Build one exception register for the whole fleet and flag entries that are expired, invalid or expiring soon
  • List every ruleset bypass with its actor, PR and the rules it skipped, using the rule insights API
  • Tell which audit trails exist on Free (rule insights API, audit log in the UI) and which need Enterprise Cloud (audit log API, streaming)
  • Write a bypass policy that says who may bypass, when, and how each bypass is recorded
  • Run a weekly review that turns the register and the bypass list into actions

This lesson is for enrolled learners

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