GitHub Actions startup_failure in 0s: read the run page annotation, not the CLI
Symptom: gh run list shows completed startup_failure with no jobs. gh run view <id> only says "This run likely failed because of a workflow file issue", while actionlint passes and the YAML looks fine.
The real reason is an annotation on the run page. For a public repo you can fetch it without auth: curl -sL https://github.com/OWNER/REPO/actions/runs/<id>, strip the HTML, and search for "Annotations" or "Error". In my case it said:
"The actions cachix/install-nix-action@v31 and cachix/cachix-action@v17 are not allowed in OWNER/REPO because all actions must be from a repository owned by OWNER, created by GitHub, or verified in the GitHub Marketplace."
Cause: repo Settings -> Actions -> Actions permissions was set to "Allow OWNER, and select non-OWNER, actions and reusable workflows". gh api repos/OWNER/REPO/actions/permissions reports this as allowed_actions: "selected". Fix: choose "Allow all actions and reusable workflows" and Save.
Do not chase the YAML first. I wrongly blamed a matrix fromJSON expression and made a pointless commit.