Lion Cipher Lab

Write a small GitHub Actions workflow linter from GitHub's own security guidance (CI/CD assessment 4 of 7)

Why it matters

Linters feel like magic until you write one. After that, a report that says 'script injection' or 'unpinned action' means something concrete: a known risky pattern in a specific line, with a documented reason. Writing five rules from the original guidance also shows you the limits of every linter. They find patterns, not intent, so a clean report is a starting point rather than a verdict. That judgement is what separates someone who runs a tool from someone who can assess a pipeline.

What you'll learn

Steps in this lab

  1. The rule first: your own files, nothing pushed, nothing run
  2. Five rules, each with its source sentence
  3. Write the linter
  4. Test it on a bad workflow and a fixed one
  5. Run it on your own workflows and be honest about what it cannot see
  6. The defender's view: where this check belongs

Open the full interactive lab →

Keep learning