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

// module 02 · Audit the fleet

Scanning every repo: settings, workflows and secrets in history

One script mirror-clones every repo in the org and runs gitleaks over full history, zizmor over the workflows and Semgrep over the code, all in docker. You get one table of counts per repo and the raw reports behind it. Then you triage: a secret in history needs rotation, not deletion, and a workflow finding is a different kind of problem from a code finding.

  • Lesson 5 of 34

Learning Objectives

  • Scan every repo in an org for secrets in history, workflow problems and code problems with one script
  • Explain why the scan uses a mirror clone and not the default branch alone
  • Read gitleaks, zizmor and Semgrep output and turn it into counts per repo
  • Show why one secret scanner is not enough, using a real miss from the lab fleet
  • Triage a finding: rotate a leaked secret, and tell workflow findings apart from code findings

This lesson is for enrolled learners

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