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

// module 02 · Audit the fleet

Org settings that matter, and their defaults

Walk through the org settings that decide who can create repos, who sees code, which Actions run and what the workflow token can do. For each one: the API that reads it, the safe value and what it costs developers. A small script checks them all against a policy file, and you apply the safe values to your test org.

  • Lesson 4 of 34

Learning Objectives

  • Read every security-relevant org setting with gh api, including the ones split across Actions endpoints
  • Pick a safe value for each setting and say what it costs developers
  • Check an org against a policy file and get PASS, FAIL or UNKNOWN per setting
  • Tell which settings have a write API and which can only be changed in the web UI
  • Find the settings a repo admin can loosen below the org value, and check them per repo

This lesson is for enrolled learners

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