Skip to main content

trust-path

trust-path lists the paths by which untrusted input can reach a secret or a publishing credential in a repository's GitHub Actions workflows. Untrusted input is text or code that anyone can supply: a pull request title, an issue body, a comment, a fork's branch name or code. A sink is what that input can reach: a secret, an OIDC token (id-token: write), a write permission of the workflow token, a deployment environment, or an AI agent action holding a credential.

Attacks in 2026 used these paths. A crafted pull request title made AI agent actions leak their secrets, text in issues steered agents, and a worm read OIDC publish tokens from runner memory and published packages with them. trust-path shows where such paths exist, including paths that cross from one workflow to another through workflow_run and reusable workflows. It reports; it does not change workflows or decide what to do about a path.

zizmor and poutine check many more things. They report an untrusted input, a broad secret or a broad permission at the place in a file where it appears. trust-path adds three things: it pairs each source with the secret, permission or environment it reaches; it follows a source from one workflow to the next through workflow_run chains and local reusable workflows; and it treats AI agent actions as sinks. See Using it with other tools.

Requirements

  • Python 3.9 or later, standard library only.
  • Written for Linux, macOS and Windows. The tests have been run on macOS with Python 3.9 and 3.14; .github/workflows/test.yml runs them on all three systems with Python 3.9 and 3.13 where GitHub Actions is enabled.

Install

From a clone:

git clone https://github.com/jacob-adm/trust-path
cd trust-path
pip install .

pip installs trust-path as a console script. Without installing, it runs from a clone as python3 -m trust_path.

How it works

  1. Read the workflows. trust-path reads every .yml and .yaml file in DIR/.github/workflows with its own YAML reader, which refuses any construct it does not read rather than guess. A refused file is named on standard error with the reason, the other files are still checked, and the exit status is 2.
  2. Find untrusted runs. A workflow runs with untrusted input when it has a trigger such as pull_request_target, issues or issue_comment, when it runs on workflow_run after such a workflow or after a pull_request workflow (followed through chains), or when it is a local reusable workflow called from such a run.
  3. Find where input enters each job. A step enters untrusted input when it uses a context such as github.event.pull_request.title in run:, with: or env:, checks out or fetches the pull request's head, downloads an artifact from the upstream run, or is an AI agent action.
  4. Collect what it reaches. The entry step and every later step of the same job are reached. trust-path collects the secrets they use and the job's write permissions, id-token: write, environment and AI agent actions holding a credential.
  5. Print one record per path. Each record is source, workflow, job, step and sink, tab-separated and sorted. Like grep, trust-path exits 1 when it finds a path, 0 when it finds none and 2 on an error, including any refused file.

Commands

trust-path [--json] DIR
trust-path [--json] --ref REF [DIR]

--json writes the records as a JSON array. --ref REF reads the workflows from git at a branch, tag or commit without checking it out; it is the only option that runs git. See Command for the fields and exit status.

Quick start

From a clone, run it on the test fixture with an AI agent action:

trust-path tests/fixtures/agent
issues:event text read by agent	.github/workflows/triage.yml	triage	anthropics/claude-code-action@v1	agent:anthropics/claude-code-action
issues:event text read by agent	.github/workflows/triage.yml	triage	anthropics/claude-code-action@v1	permissions.issues:write
issues:event text read by agent	.github/workflows/triage.yml	triage	anthropics/claude-code-action@v1	secrets.ANTHROPIC_API_KEY
issues:github.event.issue.body	.github/workflows/triage.yml	triage	anthropics/claude-code-action@v1	agent:anthropics/claude-code-action
issues:github.event.issue.body	.github/workflows/triage.yml	triage	anthropics/claude-code-action@v1	permissions.issues:write
issues:github.event.issue.body	.github/workflows/triage.yml	triage	anthropics/claude-code-action@v1	secrets.ANTHROPIC_API_KEY

The workflow runs when an issue is opened and gives anthropics/claude-code-action the issue body in its prompt, an API key and a token that can write issues. Anyone who can open an issue writes that text, and the agent acts on it while holding the key and can write text into issues that other workflows and agents read. Run trust-path . in a repository checkout to check its workflows.

Documentation

License

Apache License 2.0; see LICENSE.

Metadata

Release files for trust-path 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for trust-path 0.1.0
File Size Uploaded Provenance Actions
trust_path-0.1.0.tar.gz 32.2 kB With provenance Details for trust_path-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for trust-path 0.1.0
File Interpreter ABI Platform Actions
trust_path-0.1.0-py3-none-any.whl Python 3 none any Details for trust_path-0.1.0-py3-none-any.whl

Total release size: 52.6 kB

Release files / trust_path-0.1.0.tar.gz

Download URL trust_path-0.1.0.tar.gz
Size 32.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c24656b082cf8509ca3a0007e7472195a06e7f48123c8f4584d139b9506f4167
BLAKE2b-256 checksum
How to use checksums
1cd7319b59e4c09f320bed49e2f1f2a56708895371016e1b2273ecd94a63f69d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / trust_path-0.1.0-py3-none-any.whl

Download URL trust_path-0.1.0-py3-none-any.whl
Size 20.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
856702ffed3544b3e838a28378b9e9a8b54f97cfd443fc35ee635380e6ca04cd
BLAKE2b-256 checksum
How to use checksums
90535c096f12e80833b68de47c58fc927ad29a203950aeebbb439d067eb8ca31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Security for trust-path 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for trust_path-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page