01Chapter 1: How a workflow run is organizedWhen a workflow fails, the first job is to know which part of the run broke. This chapter gives you the working model of how GitHub Actions structures a run, so the failed-run page and its logs make sense in later chapters.3 min read
02Chapter 2: From a red check to the failing stepThis chapter covers the path from a failed check on a commit or pull request to the exact step that failed. It assumes you can read YAML, know what a commit and a pull request are, and have a repository with a workflow that has run at least once.3 min read
03Chapter 3: Reading a step logThis chapter assumes you can read workflow YAML, know the difference between a workflow, a job, and a step, and can open a run page from a failed check. Here you learn how the log of a single step is laid out and what to look for in it.3 min read
04Chapter 4: Why a step fails: exit codes and shell defaultsThis chapter assumes you can read YAML, run commands in a shell, and have a repository with a workflow. It explains the rule that decides whether a step is red or green, and how the default shell changes that rule.3 min read
05Chapter 5: Finding the first real errorThis chapter assumes you can read YAML, run shell commands, and open a failed run in the Actions tab. You should already know that a workflow contains jobs and jobs contain steps. The goal here is to pick the one log line that explains a failure and ignore the lines that follow from it.3 min read
06Chapter 6: Common failure categories and their signaturesThis chapter assumes you can open a failed run, find the failing step, and tell the first real error from the errors that follow it. Once you have that error line, the next step is to sort it into a category. Each category has a typical signature in the log and a typical fix.2 min read
07Chapter 7: Annotations and the run summaryThis chapter assumes you can open a failed run and find a failing step, as covered earlier. It shows how to read the short messages GitHub puts above the logs, and how to write your own.3 min read
08Chapter 8: When the workflow file itself is invalidThis chapter assumes you can read YAML and know the job, step, and runner structure from earlier chapters. Here the failure happens before any step runs, so there is no step log to read.3 min read
09Chapter 9: Getting logs and re-running with the gh CLIThis chapter assumes you can read a workflow file, know the difference between a run, a job, and a step, and have the GitHub CLI (gh) installed and signed in with gh auth login. The browser run page works well for a single failure. The CLI is faster when you want to filter runs, copy log text, o2 min read
10Chapter 10: Turning on debug loggingThis chapter assumes you can read a workflow file, open a failed run, and find the failing step. Sometimes the normal log does not say enough. A step fails and the output shows a bare exit code. Debug logging adds detail from the runner and from actions, and you can switch it on without editing the 3 min read
11Chapter 11: Matrix jobs and status conditionsThis chapter assumes you can read a workflow file, know the difference between a job and a step, and can open a failed run in the Actions tab. It explains why a run can show several failed, cancelled, or skipped jobs, and how to read that pattern.3 min read
12Chapter 12: Permissions, secrets, and masked outputThis chapter assumes you can read a workflow file, find a failing step in the run page, and tell a first error from the errors that follow it. Here you will learn to recognize two failure types that look alike in a log: a token without enough permissions, and a secret that is missing or empty.3 min read
13Chapter 13: Fixing the workflow and verifying the resultThis chapter assumes you can already find a failing step and read its log. You should know how exit codes make a step fail, and you should be able to tell a root-cause error from the errors that follow it. Here you apply a fix and prove it worked.2 min read
14Chapter 14: Reproducing a failure outside ActionsThis chapter assumes you can read a failed run's log, find the first real error, and use basic shell commands. It also assumes you have the failing repository cloned and Node.js installed. The examples use the app/ workflow from earlier chapters.2 min read