act
$ act Community Med RiskExecutes .github/workflows/*.yml jobs locally inside Docker containers so developers and agents can debug GitHub Actions without pushing test commits. Supports act --list, act -n (--dryrun), and --json structured logs.
brew install act Runs local Docker containers directly from .github/workflows/; cannot be replaced by MCP.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports act --list, -n (--dryrun), --json log mode, and explicit -j <job> targeting.
act --listandact -ninspect workflows without Docker executionact --jsonstreams JSON log events
Dry-run mode and container isolation limit host impact, though workflows with GITHUB_TOKEN or bind mounts can touch workspace files.
act -navoids starting containers- Runs workflow steps inside local Docker containers
Single Go binary, though live execution requires a Docker daemon and runner image downloads.
- Cross-platform binary; live runs depend on Docker
Saves countless push-wait-fail GitHub Actions cycles by reproducing CI jobs locally.
- Tight local feedback loop for
.github/workflows/debugging
Popular MIT project maintained by nektos contributors.
- Active
nektos/actrepository
Clear documentation at nektosact.com covering flags, runner images, and limitations.
- Official guide at nektosact.com
Security, Auth & Guardrails
Passes optional secrets via --secret-file or env vars (GITHUB_TOKEN) into local containers without persisting global credentials.
MIT open-source Go binary; completely free.
# nektos/act Agent Rules - Run `act --list` and `act -n` before executing full Docker workflow containers. - Target a specific job (`act -j <job>`) rather than running an entire multi-job matrix. - Never pass production deployment secrets into local `act` runs.
Agent-Ready Command Recipes
Safe Read-Only Queries
act --list
Prints a table of jobs, stages, and workflow files parsed from .github/workflows/.
act -n -j test
Simulates running the test job (--dryrun) without starting Docker containers.
Controlled Writes & Previews
act -j test --json
Executes the test job inside a local Docker runner and emits structured JSON log events.
Strengths for Agents
- +
act --listandact -ninspect GitHub Actions workflows without container overhead. - +
--jsonlog mode produces structured step output for automated triage. - + Eliminates slow push-to-GitHub CI debugging loops.
Caveats & Pitfalls
- ! Live job execution requires Docker and multi-hundred-MB runner images.
- ! Some GitHub-hosted runner services or OIDC tokens differ from real GitHub Actions.