Hey {{first name | there}}. Back in August I asked how CI is even keeping up with this, after Netlify emailed me about a deploy quota I did not know existed. That issue was about cost.
This week two posts made me look at what GitHub Actions agrees to run, and who gets to start it.
In today's technical notes:
YAML that only GitHub accepts
Who can start your workflow
Checking your own pipelines
📰Technical Notes: Hold GitHub Actions and the files we trust
William Woodruff maintains zizmor, a static analyser for GitHub Actions workflows. For about a year and a half, zizmor had an open issue about a workflow it refused to parse. The step looked like this:
- name: Create NPM Remote Repository JSON
uses: jsdaniell/[email protected]
with:
name: "npm-remote-template.json"
json: '{
"key": "npm-remote",
"rclass": "remote",
"packageType": "npm",
"url": "https://registry.npmjs.org"
}'
The closing }' sits at the same indentation as json:. Section 8.2.3 of the YAML 1.2.2 spec says a flow node inside a block collection has to be indented at least one more space than its parent. Move that line one space to the right and the file is valid. Leave it where it is and a conforming parser rejects it, while GitHub runs it without complaint.
In September I wrote about KYAML in Great, we have to write more YAML now. The argument there was that wrongly indented YAML is still valid YAML that describes a different object, and that Kubernetes answered it with a dialect that gives you fewer choices. This is the reverse problem. The file is not valid YAML, and GitHub runs it anyway, so the platform ends up accepting more choices than the spec allows.

The same step at two indentation levels, where GitHub Actions runs both and a conforming parser accepts only the second.
His best guess at the cause is the parser. Actions appears to use YamlDotNet 5.3.0, released in 2018. GitHub's parsing code is mostly closed, so this is inferred from the outside.
A 2020 patch fixed this rule for double-quoted strings, because the official YAML test suite only checks the double-quoted form. Single-quoted strings still get through, and the latest YamlDotNet release has the same gap.
Linters, security scanners, and editor plugins read your workflows before GitHub does, and each brings its own parser.
When GitHub accepts files the spec rejects, those tools either fail on workflows that run fine in production, or loosen their own parsing to match. He did the second for tree-sitter-yaml and then reverted it.
In the Lobsters thread, the guess was that if GitHub ever fixes this, it will ship a quirks mode.
Who can start your workflow
The second post came from the Python Software Foundation. Mike Fiedler and Seth Larson wrote up how they removed dangerous triggers across the psf, python, and pypi GitHub organisations.
The trigger most of us use for pull requests is pull_request . Code from a fork runs with a read-only token and no secrets. pull_request_target looks similar, but it runs in the context of the base repository, with a read/write token and access to repository and organisation secrets.
That is fine for labelling a PR. It goes wrong when the workflow checks out the PR's code and runs it:
on: pull_request_target
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
ref: ${ { github.event.pull_request.head.sha }}
- run: make test
Anyone with a GitHub account can open that pull request, and their Makefile runs with your secrets. issue_comment has the same problem in two forms. One is a "/test" bot that checks out and runs the PR's code. The other is a workflow that pastes the comment text into a shell command.

What a pull request from a fork gets under each trigger.
The post lists three incidents:
Ultralytics, December 2024. A
pull_request_targetworkflow led to a poisoned build cache and malicious releases on PyPI.LiteLLM and Telnyx, March 2026. An API token was exposed through a compromised Trivy dependency, which StepSecurity traced back to a
pull_request_targetworkflow.elementary-data, April 2026. One crafted comment on an
issue_commentworkflow ran with a token that could write to the repository, and ended in a malicious release on PyPI.
GitHub is changing the default as well. From December 2, Actions blocks pull_request_target in public repositories unless an Actions event policy allows it. Private and internal repositories are not affected. Blocked runs show up as failed runs with an annotation, so if one of your workflows depends on this trigger, you will find out next week.
Checking your own pipelines
In August my answer was about quotas and build minutes. More pull requests per day meant more preview environments and more minutes. The same growth shows up here. More pull requests from more people, and now from agents, means more events that can start a workflow, and more workflows written by copying a step from somewhere else.
Three checks to run this week:
Search for the two triggers in each repository.
grep -rnE "pull_request_target|issue_comment" .github/workflowsRun zizmor over your workflows with
zizmor .github/workflows/. It flags dangerous triggers, template injection and a few other patterns from the incidents above.If you are on GitHub Team or Enterprise, add an organisation event policy under Settings, Actions, Policies. Start it in Evaluate mode, which blocks nothing, check what it would have blocked in Policy insights, then enforce it. On the Free plan you set the policy per repository.
🌍IN THE ECOSYSTEM
TIL: GitHub Actions accepts invalid YAML by William Woodruff. The one-space example, the YAML rule it breaks, and why YamlDotNet's fix only covered double-quoted strings.
De-fanging dangerous triggers in GitHub Actions across an organization by Mike Fiedler and Seth Larson. The step-by-step version of the PSF rollout, with the event policy settings, the allowlist of events they kept and the gh api calls for Free plan repositories.
pull_request_target blocked by default December 2 from the GitHub changelog. Which repositories are affected, how Evaluate mode works, and how to allow the trigger for specific workflows.
⏱️UNTIL NEXT TIME
Run the grep before December 2 and see what comes back. If a workflow you rely on uses pull_request_target, check whether it checks out PR code before the block turns it into a failed run.
Know an engineer who will find this helpful? Share this link with them
Jubril Oyetunji
CTO, EverythingDevOps

