Skip to content
Checklist

CI Pull Request Poisoning Checklist

Could a stranger’s pull request or a force-pushed commit end up in the installer your users download? Attackers have been reported to poison builds this way, for example in the campaign reported as PolinRider. Work through pull_request_target and fork workflows, secrets on fork builds, actions pinned by SHA, force-push and stale-approval rules, release builds only from protected branches with provenance, a scan before publishing and rotating secrets after an incident. You get a 0–100 score and the gaps ranked so you fix the riskiest first.

Pipeline poisoning resistance
0/ 100
Wide open

Untrusted code can run with secrets or ship in a release. Lock down fork workflows and force-pushes first.

0 / 20 items answered · weighting is a heuristic
By section
  • Untrusted pull requests0
  • Actions and dependencies0
  • Branches, reviews and force-pushes0
  • Release builds and provenance0
  • Monitoring and response0

Prioritised gaps

Highest-weight, least-done items first. Work from the top.

  1. Untrusted pull requests · unanswered

    Search .github/workflows for pull_request_target and workflow_run. Where one checks out github.event.pull_request.head.sha or ref and builds it, move the build to pull_request (no secrets) and keep only labelling or commenting in the privileged workflow.

  2. Release builds and provenance · unanswered

    Trigger release workflows on push to protected tags only, and protect the tag pattern with a ruleset.

  3. Branches, reviews and force-pushes · unanswered

    In branch protection or rulesets, block force pushes and deletions and do not allow bypass, or limit bypass to a break-glass role.

    GitHub Branch Protection Checklist →
  4. Untrusted pull requests · unanswered

    Set Actions > General > "Require approval for all external contributors" (or at least first-time contributors) at organisation level.

  5. Untrusted pull requests · unanswered

    Turn the fork-secrets option off and keep publish, signing and cloud credentials only in workflows that run on protected branches or tags.

  6. Release builds and provenance · unanswered

    Move release secrets into an environment (for example "release") that requires a maintainer approval before the job can read them.

  7. Release builds and provenance · unanswered

    Add an attestation step to the release workflow and sign installers; publish how users can verify both.

    Release Integrity Scorecard →
  8. Branches, reviews and force-pushes · unanswered

    Enable "Dismiss stale pull request approvals when new commits are pushed" and "Require approval of the most recent reviewable push".

+ 12 more in the checklist below and in the export.

Untrusted pull requests · weight 24

A pull request from a fork is code written by a stranger. The question is what your pipeline lets that code touch before a human has read it.

0
/ 100
tr1

No workflow triggered by pull_request_target (or workflow_run from a PR) checks out and runs code from the pull request's head.

tr2

Workflows from fork pull requests by first-time or outside contributors need maintainer approval before they run.

tr3

Secrets are never sent to builds of fork pull requests, including in private repositories ("Send secrets to workflows from fork pull requests" is off).

tr4

The default GITHUB_TOKEN is read-only and each workflow asks only for the permissions it needs.

tr5

Pull request titles, branch names and bodies are never interpolated straight into run: scripts.

Actions and dependencies · weight 14

A third-party action runs with your workflow's token and secrets. A tag can be moved; a full commit SHA cannot.

0
/ 100
dp1

Third-party actions are pinned to a full-length commit SHA, not a tag or branch.

GitHub Actions Security Auditor →
dp2

Only allow-listed actions can run in the organisation.

dp3

Changes to .github/workflows, build scripts and lockfiles need review from a code owner.

Branches, reviews and force-pushes · weight 22

A force-push can replace reviewed commits with unreviewed ones. Protection rules decide whether that silently ships.

0
/ 100
br1

Force-pushes and branch deletion are blocked on the default and release branches for everyone, admins included.

GitHub Branch Protection Checklist →
br2

Approvals are dismissed when new commits are pushed, and the most recent push must be approved by someone other than its author.

br3

Signed commits are required on protected branches, and maintainers sign with keys tied to their accounts.

br4

Maintainer accounts use phishing-resistant MFA, and the organisation requires two-factor authentication.

Release builds and provenance · weight 24

The installer your users download should be traceable to a reviewed commit on a protected branch, built by a known workflow.

0
/ 100
rl1

Release artifacts are built only from protected branches or protected tags, in a workflow that fork pull requests cannot trigger.

rl2

Publishing and signing secrets live in a deployment environment with required reviewers.

rl3

Release artifacts carry build provenance (for example GitHub artifact attestations or SLSA provenance) and are code-signed.

Release Integrity Scorecard →
rl4

Installers and packages are scanned (malware scan, diff against the previous release, unexpected files or network calls) before they are published.

rl5

Build runners for releases are ephemeral and not shared with pull request builds.

Monitoring and response · weight 16

When a poisoned commit is found, the question is how far it got and which secrets the workflows that ran it could read.

0
/ 100
rs1

You alert on force-pushes, protection rule changes, new deploy keys and workflow file changes on important repositories.

GitHub Audit Log Monitoring →
rs2

After a suspected poisoning you rotate every secret the affected workflows could read, not only the one you think was used.

Secret Rotation Order Planner →
rs3

You can pull or revoke a published release quickly and tell users which versions to remove.

Educational self-assessment from PlayCISO. The section weights are a judgement framework, not a measurement, certification or guarantee. Campaign details are as reported publicly and are not confirmed by PlayCISO; setting names are GitHub's and may differ on other platforms. The checklist runs in your browser and uploads nothing; your answers live only in the link you choose to copy.

Loading…

Sample report · illustrative data

Sample result: CI pull request poisoning checklist

Example answers for a made-up open-source desktop app built with GitHub Actions: fork builds get no secrets, but a labelling workflow uses pull_request_target and releases are not attested.

Overall

Pipeline poisoning resistance
45 / 100 (Poisonable)
Items answered
20 of 20

Score by section

SectionWeightScore
Untrusted pull requests2456
Actions and dependencies1440
Branches, reviews and force-pushes2244
Release builds and provenance2446
Monitoring and response1635

Prioritised gaps (first five)

  • Release builds and provenance: move release secrets into an environment (for example "release") that requires a maintainer approval before the job can read them.
  • Branches, reviews and force-pushes: enable "Dismiss stale pull request approvals when new commits are pushed" and "Require approval of the most recent reviewable push".
  • Untrusted pull requests: search .github/workflows for pull_request_target and workflow_run.
  • Untrusted pull requests: pass event fields through env: variables and quote them, instead of ${{ github.event.pull_request.title }} inside a shell line.
  • Release builds and provenance: add a pre-publish gate that scans the built artifacts and compares their contents with the last release.

Made-up example data. Your own run uses your inputs. Downloads of the full report need Pro.

TL;DR

What this checklist is

5 points
  • For engineering, platform and security teams that build and publish software, packages or installers from GitHub Actions or another CI system.
  • Five weighted sections: untrusted pull requests, actions and dependencies, branches and force-pushes, release builds and provenance, and monitoring and response. You get a 0–100 score, a band and the gaps to close first.
  • Prompted by reported campaigns that used poisoned pull requests and force-pushed commits, such as the one reported as PolinRider. The controls are generic; setting names are GitHub’s.
  • Untrusted triggers and release builds carry the most weight: the dangerous combination is code from a fork running where publishing or signing secrets are available.
  • Runs in your browser; nothing is uploaded. Share the exact checklist with a link; CSV and Markdown exports are available.

The dangerous moment is fork code meeting your secrets

Most CI attacks do not need a stolen password. A workflow that builds a pull request with secrets available, an approval that survives a later force-push, or an action pinned to a tag someone can move is enough to put a stranger’s code into a build. When that build is a release, the result ships to every user who trusts your signature.

The fixes are settings, not products: keep secrets out of fork builds, require approval before outside contributors’ workflows run, pin actions to commit SHAs, block force-pushes and dismiss stale approvals, and build releases only from protected refs in an environment that needs a maintainer’s approval. The weights in this checklist are a heuristic, shown openly; it is a self-assessment, not a certification.

Frequently asked questions

What is pull request poisoning?

An attacker gets malicious code into your build through a pull request or a commit, rather than by breaking into your servers. Common routes are workflows that run fork code with secrets (often through pull_request_target), approvals that stay valid after new commits are pushed, force-pushes to protected branches and unpinned third-party actions.

Why is pull_request_target risky?

It runs in the context of the base repository, with access to secrets and a write-capable token, even for pull requests from forks. That is safe for labelling or commenting, but if the workflow checks out and builds the pull request’s code, that code runs with your secrets. Build untrusted code with the pull_request trigger instead, which gets no secrets from forks.

Which GitHub settings stop a force-push from replacing reviewed code?

Block force pushes and deletions on default and release branches with branch protection or rulesets, without bypass for admins. Turn on "Dismiss stale pull request approvals when new commits are pushed" and "Require approval of the most recent reviewable push", and consider requiring signed commits.

How do I make releases traceable?

Build releases only from protected tags or branches in a workflow fork pull requests cannot trigger, keep publishing and signing secrets in an environment with required reviewers, add build provenance such as GitHub artifact attestations, sign the artifacts and scan them before publishing.

Does the tool read my repositories or upload my answers?

No. It is a self-assessment that runs entirely in your browser. It makes no calls to GitHub or any other service, and your answers are only stored in the shareable link you choose to copy.

More tools like this

Related tools and labs, with new picks every day.

All tools