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

// module 01 · What AI changed, and your lab

You can't harden what you can't list

Write down what your org has before you change anything. A 70-line bash script uses gh and jq to list every repo with its visibility, protections, secret scanning, Dependabot and workflows, plus the org settings that matter, and saves it as JSON you will compare against at the end of the course.

  • Lesson 3 of 34

Learning Objectives

  • List every repo in an org with gh api, following pagination
  • Read each repo's protection, secret scanning, Dependabot and workflow status from the REST API
  • Snapshot the org-level Actions and security defaults
  • Tell "off" apart from "could not tell" in an inventory
  • Save a before-state you can diff against after hardening

This lesson is for enrolled learners

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