The changes that matter in a workflow PR are often a single line: contents: read
becomes write, a pull_request_target trigger appears, a release job starts
running a new third-party action with your secrets. Remit compares the base and
head of every pull request and puts each of those changes on the line that
introduced it, so reviewers can't miss them.
- Only what changed. Unchanged configuration stays quiet, so ordinary PRs get no noise.
- Flags common pwn-request patterns. Privileged workflows that start checking out, fetching or downloading pull request content, including the time-of-check to time-of-use trap after a label or comment approval.
- Right on the diff. Findings appear as annotations in the PR's Files changed tab.
- Safe on untrusted PRs. The PR is read as data and never executed; the analysis makes no network calls.
- Nothing to install. A pinned Action with a hash-verified bundled parser; no secrets,
contents: readonly.
Remit helps reviewers; it doesn't replace them. It points at privilege changes so a person can judge them, and it never blocks a merge. It can't see code outside workflow files (a script a privileged job runs), code inside other repositories' actions, or your repository's default token permissions, and a pull request can edit the workflow that runs it. Pair it with a
CODEOWNERSrule so that changes under.github/need approval from someone who knows your CI (setup).
What it catches
A PR edits a release workflow:
name: Release
-on: push
+on: [push, pull_request_target]
permissions: {}
jobs:
publish:
runs-on: ubuntu-latest
permissions:
- contents: read
+ contents: write
+ id-token: write
steps:
- uses: actions/checkout@v4
- run: make dist
+ - uses: someone/release-action@v1
+ with:
+ token: ${{ secrets.RELEASE_TOKEN }}
Remit annotates five lines of that diff:
| Line | Rule | Finding |
|---|---|---|
| 2 | WF003 | Review-sensitive trigger pull_request_target introduced. |
| 8 | WF001 | Job publish is newly configured to use contents: write. |
| 9 | WF001 | Job publish is newly configured to request an OIDC identity token. |
| 13 | WF009 | Job publish now runs third-party code from someone/release-action@v1, which can use contents: write; id-token: write; secrets: RELEASE_TOKEN. |
| 15 | WF004 | Job publish adds a reference or forwarding path to RELEASE_TOKEN. |
The job summary groups the same findings by workflow and job, with a question for the reviewer on each (sample). JSON and SARIF reports carry the same data for tooling and GitHub code scanning.
Quick start
- Copy
examples/github-action-template.yml(45 lines) to.github/workflows/remit.yml. - Merge it.
- Open a pull request that touches a workflow and look at Files changed.
The template checks out the base commit, fetches the PR head without checking it out, and runs the Action pinned to a full commit SHA:
- uses: adi271213/remit@9dd1827cc0afb8d2e9607f51d4e5c1bee9e6698d # version 1
with:
mode: advisory
Use the whole template rather than this step alone: the step needs both commits in the local clone. The setup guide covers inputs, outputs, code scanning and troubleshooting.
Rules
| Rule | Reports |
|---|---|
| WF001 | A job's token scope increases (none → read → write), including new id-token: write (OIDC) |
| WF002 | A job starts relying on the repository's default token permissions, or replaces them with permissions that may exceed the default |
| WF003 | A newly added pull_request_target, workflow_run, issue_comment, issues, discussion or discussion_comment trigger |
| WF004 | A job newly references a secret, or forwards all secrets (secrets: inherit, toJSON(secrets)) |
| WF005 | A job's runner changes to a self-hosted, custom-label, runner-group or unresolvable selection |
| WF007 | A job's deployment environment is added, removed or changed |
| WF008 | A matrix job pairs a runner with a different environment while the overall runner and environment sets stay the same |
| WF009 | Third-party code (an action or reusable workflow) newly runs in a job with write scopes, OIDC, secrets or an environment |
| WF010 | A pull_request_target, workflow_run or issue_comment job newly checks out, fetches or downloads pull request content: the "pwn request" |
| WF011 | An approval-gated privileged job checks out a pull request reference that can change after approval: time-of-check to time-of-use |
| WF012 | A job with write scopes, OIDC, secrets or an environment, or in a release workflow, newly restores files from the Actions cache, including caching an action turns on by default in a newer version |
| WF013 | A checkout stops setting persist-credentials: false where the token can write or is a custom token |
Rules follow steps into local composite actions and local reusable workflows
(./ and $/ references), so a change inside .github/actions/ is caught even
when no workflow file changed.
docs/RULES.md describes the exact behaviour of each rule.
Remit and zizmor
zizmor audits what your workflows are
for risky patterns. Remit reports what a pull request changed, including
increases that never become a zizmor alert because the end state isn't "bad"
by a state rule: a job gaining id-token: write, a new secret reference, a
changed environment, or a new action receiving write access.
On 74 historical public PRs, Remit reports 66 findings. zizmor 1.32 (pedantic, offline) crashed on one of those PRs; for 41 of the other 64 findings (64%), it reported no new finding of a related audit in the same workflow and job, including all 8 new secret references. The PRs were selected and labelled by this project and the matching is approximate, so read this as an indication, not a benchmark. Run zizmor for what is dangerous, and Remit for what got wider.
A field comparison on 446 recent workflow commits in 30 popular repositories, picked by a rule, points the same way: 172 of Remit's 233 findings, including 55 of 57 new secrets and every runner and environment change, had no related new finding from zizmor or poutine.
Results
Every run reports an analysis status and a review status:
| Analysis | Meaning | CLI exit | require-complete (default) |
advisory |
|---|---|---|---|---|
complete |
All changed workflows were compared | 0 | pass | pass |
incomplete |
Some context is unknown, e.g. a dynamic expression | 2 | fail | pass with warning |
error |
Some input couldn't be parsed or read | 2 | fail | pass with warning |
Review is suggested when there are findings, none when analysis is complete
with no findings, and (in the Action) unknown when analysis is incomplete and
nothing was found. Known findings are reported alongside incomplete or failed parts.
Findings never fail the step. Remit is a review aid, not a merge gate: a clean report doesn't mean a PR is safe, and a PR can edit the workflow that runs the check.
Inherited token permissions
A job without a permissions block gets the repository or organization default,
which Remit can't see. When a PR adds such a job, or removes a job's
permissions block, WF002 asks the author to declare permissions explicitly.
When a job that used the default starts declaring permissions, only levels above
GitHub's narrowest possible default (contents: read, packages: read) are
reported, so ordinary hardening PRs stay quiet. To compare against your real
default instead, pass it in:
with:
default-permissions: '{"contents": "read"}'
Limitations
- Workflows are read from
.github/workflows/, and local composite actions and reusable workflows are followed. Actions and reusable workflows from other repositories, and the contents of scripts, are not analysed. - Repository and organization settings are not visible: default token permissions, runner inventory, environment protection rules and secrets.
- WF003 looks at trigger names only. Filter changes on existing triggers (branches, types, paths) are not analysed.
- Expressions are not evaluated. Only direct
${{ matrix.<field> }}references into a static matrix of up to 256 rows are resolved, and aworkflow_runjob'sif:is checked for whether it rules out pull request runs; anything else is reported as unresolved. - YAML merge keys (
<<) and recursive aliases are rejected as errors. - A renamed file is matched only if its content is identical; an edited rename is treated as a new file and can produce findings for unchanged settings.
- Input limits: 400 workflow files and 16 MiB per commit; per file, 1 MiB and
60,000 YAML tokens (a very dense file can reach the token limit first). A larger
workflow file is fingerprinted rather than read: unchanged, it stays quiet;
changed, it makes that file's analysis
incomplete. - WF010 and WF011 follow pull request references through environment variables,
$GITHUB_ENV, step and job outputs, and action inputs within the repository. Values computed in other ways (a script that builds a ref from pieces, files passed between jobs) are not traced. - WF012 knows the caching defaults of the actions it lists, by major version
read from the reference. An action pinned to a SHA, or one not listed, is not
assumed to cache, and
package.jsonis not read to see whether setup-node's automatic cache applies.
Command line
The package is remit-actions on PyPI; the command it installs is remit.
pip install remit-actions
remit scan --repo . --base main --head my-branch --format markdown
remit scan --dirs path/to/before path/to/after --format sarif --output remit.sarif
Output is JSON by default; --format markdown and --format sarif are also
available. --summary FILE appends the Markdown summary and --sarif FILE
also writes SARIF. --repository-name owner/repo names the repository being
analysed, so references to it by full name aren't reported as third-party code
(the Action passes this itself). The exit code is 0 for complete analysis and 2 otherwise.
Audit an existing repository
Pull request checks only see what a PR changes. remit audit reports what is
already there: every place a pull_request_target, workflow_run or
issue_comment job brings in pull request content (WF010), and every mutable
checkout after a label, comment or environment approval (WF011), including
through local actions and reusable workflows.
remit audit --repo . # the current commit
remit audit --repo . --ref v2.3.0 # any commit or tag
remit audit --dir path/to/checkout --format markdown
remit audit --repo . --format sarif --output remit-audit.sarif
Like scan, it reads committed Git objects (or a directory) as data and runs
nothing. The exit code is 0 for a complete audit, 2 when something couldn't be
analysed, and with --fail-on-findings, 1 when the audit found something. The
setup guide
has a weekly scheduled audit workflow.
Status
Rule IDs, Action inputs and outputs, and the JSON report format stay compatible within a version; an incompatible change gets a new version number. Each release runs the test suite on Python 3.11–3.14, runs the Action end to end with networking disabled, and replays 74 historical public PRs. The replay's expected results were labelled by the project, so treat it as a regression suite rather than an accuracy measurement. Feedback from real repositories is the most useful thing you can send: open a trial feedback issue.
Setup · Rules · Architecture · Contributing · Security · Changelog · MIT license
Metadata
Release files for remit-actions 1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| remit_actions-1.3.tar.gz | 354.0 kB | With provenance | Details for remit_actions-1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| remit_actions-1.3-py3-none-any.whl | Python 3 | none | any | Details for remit_actions-1.3-py3-none-any.whl |
Total release size: 414.8 kB
Release files / remit_actions-1.3.tar.gz
| Download URL | remit_actions-1.3.tar.gz |
|---|---|
| Size | 354.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
30acab8a4dc7e43581ce65b7e6bc0df57c319ce9756608c9b8e6136f550989ce
|
|
BLAKE2b-256 checksum How to use checksums |
de355d0e1def566d5912839c5cdbcec1747fd9facdd1c5758985f33154d0764f
|
| 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 11, 2026.
Transparency logRelease files / remit_actions-1.3-py3-none-any.whl
| Download URL | remit_actions-1.3-py3-none-any.whl |
|---|---|
| Size | 60.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c9984558b3fc08e56a7da2fe035a0f532d3b108785442f9969db06e68124c52f
|
|
BLAKE2b-256 checksum How to use checksums |
4abcef4f6542a5077b9638627dc5e6a5f5dc894ced96771059e5fc2d852d11b1
|
| 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 11, 2026.
Transparency logSecurity for remit-actions 1.3
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.
Attestation for remit_actions-1.3.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 11, 2026.
Transparency logA 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.