Catalog PyPI
PACKAGE EXPLORERView in registry

actionsbench

PyPI

A labeled benchmark and evaluation harness for GitHub Actions workflow security scanners.

benchmarkcigithub-actionssecuritystatic-analysis
Versions collected1
Direct dependencies2From release 0.1.1
Last observed20 Oct, 18:33 UTC

README

Version 0.1.1 documentation

ActionsBench

A labeled benchmark and evaluation harness for GitHub Actions workflow security scanners.

Status: initial release (0.1.0, pre-1.0). The corpus is a small hand-built set (44 cases) and every label is still proposed (one author). The facts behind them were audited against primary sources (docs/evidence-audit.md), but no label has been independently reviewed. Nothing here is a result yet. It is public early so the labels can be challenged, not because it is finished.

Why this exists

Several open-source scanners analyze GitHub Actions workflows for security weaknesses, and they disagree widely. In a 2026 study of 9 scanners on 2,722 real workflows, one tool reported 107 injection findings where another reported 1,778 on the same files. The same study found no verified, labeled dataset of workflows with known weaknesses, so precision and recall could not be computed (arXiv 2601.14455).

ActionsBench provides the missing piece:

  1. A labeled corpus of minimized workflows, each tagged with the weakness it contains, or marked clean.
  2. A harness that scores any scanner against the corpus, per weakness class.
  3. Versioned, reproducible releases so results stay comparable over time.

It is not a scanner, and it does not rank tools. It reports per-class evidence.

Full motivation, scope and risks: docs/PRD.md.

Quickstart

Requires Python 3.11+ and uv.

uv sync
uv run actionsbench validate      # check every case in corpus/cases
uv run actionsbench stats         # cases per weakness class
uv run actionsbench run --tool zizmor      # needs uvx; add --config persona=auditor for another setting
sh scripts/install-actionlint.sh           # pinned, checksum-verified download into .tools/
uv run actionsbench run --tool actionlint
uv run actionsbench score results/zizmor-1.30.1-regular/findings.json

run executes a scanner that has a reviewed adapter (so far zizmor and actionlint, each scored on the injection class only) and writes a findings file; raw output goes to results/ (gitignored). score takes any normalized findings file (schema: findings.schema.json), so a scanner without an adapter can still be scored by producing that file. More adapters are planned (see plan.md).

Run the commands from the repository root, or pass --corpus explicitly.

How scoring works

  • A tool is judged only on the weakness classes it declares in scope. Anything outside that scope is reported as a coverage gap, never as a miss or a false alarm.
  • Cases the tool did not run on are excluded, not counted as clean.
  • Matching is one-to-one (class, file, and the same step, job or top-level key; use --match line for exact lines), so duplicate findings do not inflate recall.
  • Results are per class. There is no overall score on purpose.

Details: docs/methodology.md.

Repository layout

PathContents
corpus/cases/The labeled cases. Each case directory is a fake repository root plus a case.yaml.
src/actionsbench/Corpus loader and validator, SARIF parser, scorer, CLI.
src/actionsbench/schemas/JSON Schemas for case.yaml and the findings file (the public contracts).
docs/PRD, methodology, rule mappings (the review record), architecture decision records.
plan.md, status.mdThe work plan with human gates, and an append-only progress log.

A note on the corpus

The cases contain deliberately vulnerable workflows. They are inert: GitHub only runs workflows under the repository root's .github/workflows/, and these live inside corpus/cases/. Payloads are benign placeholders. Never copy them into a real repository. See SECURITY.md.

Contributing

Labels are claims, and they are meant to be challenged. See CONTRIBUTING.md for adding cases, challenging a label, and the development setup.

All pull requests target the dev branch. main and the v* tags are the released state (see ADR 0004).

License

  • Code (src/, tests/, tooling): MIT.
  • Corpus (corpus/, the labeled cases and their labels): CC BY 4.0. Reuse is welcome with attribution; please cite ActionsBench and the corpus version you used.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.16 Oct 20262

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
neesimera/actionsbench

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:33 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:c0fef3443f045bbc9680bb290bffa7fdb6c0cc4d4e0fce7cc89be055ff3e483d