Lion Cipher Lab
Write a small GitHub Actions workflow linter from GitHub's own security guidance (CI/CD assessment 4 of 7)
- Penetration Testing / Red Team
- Intermediate
- ~60 min
- Free · no account required
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
- turning written security guidance into checkable rules
- finding untrusted context values inside run scripts
- spotting pull_request_target with a pull request checkout
- flagging a missing permissions key and write-all
- flagging actions not pinned to a commit SHA
- knowing what a simple linter cannot see
Steps in this lab
- The rule first: your own files, nothing pushed, nothing run
- Five rules, each with its source sentence
- Write the linter
- Test it on a bad workflow and a fixed one
- Run it on your own workflows and be honest about what it cannot see
- The defender's view: where this check belongs
Open the full interactive lab →