Loading tutorials
on, jobs, steps) and write YAML. You should know what repositories, pull requests, and issues are. You should also know that workflows can run third-party actions, which is the reason token permissions matter.3 min readon, jobs, steps) and that you know workflows often run third-party actions. It explains what an attacker gains from a token with too many permissions.2 min readon, jobs, steps) and know that every job gets a GITHUB_TOKEN. Here you change the default permissions that token receives when a workflow does not set its own.2 min readon, jobs, steps) and know that GITHUB_TOKEN is the credential GitHub creates for each job. The permissions key controls what that token can do.2 min readpermissions key sets what the GITHUB_TOKEN may do. Here you learn which scopes appear most often and what each one allows.2 min readGITHUB_TOKEN is created for each job and expires when the job ends.2 min readon, jobs, steps) and know that the GITHUB_TOKEN is a short-lived credential created for each job. It also assumes you know the permissions key accepts scopes such as contents and pull-requests, each set to read, write, or none.2 min readpermissions key works at workflow and job level. The goal is to work out which permissions a job needs, not to guess them.2 min readpermissions key from earlier chapters. Here you will learn to turn a failed run into the exact permission it needs.2 min readpermissions block at workflow and job level. The token you get does not depend only on that block. The event that triggered the run, and who triggered it, can lower or raise what the token can do.2 min readon, jobs, and steps. It also assumes you know the permissions key at workflow level and job level, and you have seen uses: for actions. Here you will see how token permissions pass from a calling workflow to a reusable one.2 min readpermissions key limits the GITHUB_TOKEN, and that you can read a basic workflow. It covers a second place the token ends up: the checked-out repository on the runner's disk.2 min readpermissions key works at workflow and job level, and have a cloud account (AWS is used here) where you can create an IAM role.2 min readpermissions key, the difference between workflow-level and job-level permissions, and how fork pull requests normally get a read-only token.2 min readpermissions block at workflow and job level. It also assumes you have the GitHub CLI (gh) installed and authenticated. It shows how to find workflows that grant too much and how to stop new ones from appearing.2 min readpermissions key, and have set the repository default to read-only. The GITHUB_TOKEN covers most jobs. A few tasks need something else, and choosing the right replacement keeps the least-privilege approach intact.2 min read