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

// module 04 · A central security gate

One reusable security workflow for the whole fleet

Put the security gate in one place: a central `security-workflows` repo in the org with a reusable workflow, and a ten-line caller in every repo, pinned to a full commit SHA. This lesson creates the central repo, rolls the callers out as pull requests, reads the real check name from a run, and makes that check required in the baseline ruleset. Then you see what the required check blocks, and the three ways around it we found.

  • Lesson 11 of 34

Learning Objectives

  • Build a central repo with a reusable workflow (`on: workflow_call`) and a self-test
  • Roll out a caller to every repo as one pull request each, pinned to a full commit SHA
  • Find the real status check name of a reusable workflow job and require it in a ruleset
  • Release a new gate version: tag, pin the SHA, bump the callers with PRs
  • Explain who can get around a required check, and which control stops each way

This lesson is for enrolled learners

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