Loading tutorials
GITHUB_TOKEN and secrets a job receives, and how trust differs by trigger. Later cha6 min readGITHUB_TOKEN and secrets. This chapter answers a narrower question: **which values in the workflow cont5 min read${{ }} expressions in a workflow file. It builds the mental model that the next chapters on script injection depend on. It assumes you know basic YAML, the structure of a workflow (events, jobs, steps), and basic shell quoting.5 min read${{ }} expression inside a run step lets outside data become code.6 min read${{ }} inside a run: step is dangerous. Here you learn the standard fix, why it works, and the ways people still get it wrong.4 min readactions/github-script and similar script-style actions. It assumes you can read YAML workflows, know basic JavaScript, and have read the earlier chapters on how ${{ }} expressions are expanded and how run steps are fixed with environment vari5 min read${{ }} injection and pull_request_target are dangerous. Here you learn how to limit the damage when something goes wrong. A smaller token does not5 min readpull_request_target mistake: checking out and running code from a pull request in a privileged job. It assumes you know basic YAML, the structure of a workflow (events, jobs, steps), what forks and pull requests are, and basic shell scripting. It also assumes 6 min readpull_request and pull_request_target, how GITHUB_TOKEN permissions work, and why ${{ }} expansion in a run step is dangerous. The earlier chapters showed what goes wrong. Here you will learn the design that avoids it6 min read${{ }} expansion, pull_request versus pull_request_target, and GITHUB_TOKEN permissions. You should also be comfortable with workflow YAML and basic shell.6 min read${{ }} expansion problem from the earlier chapters. It also assumes you can read a workflow with several steps and write basic shell. The chapter covers a second injection route that does not need ${{ }} inside a run script. It happens when a step writes untru5 min readpull_request and pull_request_target differ in token and secret access. It also assumes you know what a fork is. The earlier chapters covered how to remove injection and pwn-request bugs from workflow code. This chapter cov6 min readGITHUB_TOKEN and repository secrets are, and have seen the pull_request and pull_request_target triggers from earlier chapters. Earlier chapters dealt with attacker-controlled data flowing into your wo7 min readpull_request_target patterns from the earlier chapters. You should be comfortable running commands in a terminal.5 min read