Loading tutorials
$VARIABLE expansion. The chapter explains the step that makes script injection possible.2 min read${{ }} is an expression, and can write basic shell. It builds on the previous chapter, where ${{ }} was shown to be expanded into the script text before the shell starts.2 min read${{ }} expressions are expanded in run steps and why event fields such as titles and branch names are attacker-controlled. Here the same flaw appears in a different place: JavaScript source instead of shell.2 min readGITHUB_TOKEN is a short-lived credential GitHub gives each workflow run. Here you compare the two triggers that start a workflow when a pull request opens, and you learn which one is safe for r2 min readpull_request_target runs in the base repository's context. The earlier chapters showed how an attacker can run code in your job. Token permissions decide how much damage that code can2 min readpull_request and pull_request_target triggers. It also assumes you know what GITHUB_TOKEN permissions are.2 min readpull_request and pull_request_target triggers, the permissions key, and why a pwn request is dangerous. Here you will see the standard fix: separate the code that runs untrusted input from the code that holds privileges.2 min readpull_request and pull_request_target triggers, the default GITHUB_TOKEN permissions, and the split-workflow pattern from the previous chapter. Here you will see how the privileged half of that split can still be attacked through the data it receives.2 min read${{ }} expansion and on passing untrusted data through environment variables.3 min readpull_request and pull_request_target, and how GITHUB_TOKEN permissions work. The earlier chapters on those topics cover both. Here you add two human checkpoints that sit around a workflow: approval before fork code runs, and approval before 2 min readpull_request and pull_request_target. It also assumes you know that GITHUB_TOKEN and repository secrets are available to jobs. Here we look at a different trust boundary: the code you pull in with uses:.3 min read