Skip to main content

act Cheatsheet

act runs GitHub Actions workflows locally without pushing to GitHub. Validate your CI/CD pipelines instantly, debug faster with local Docker-based execution. It supports all common event types.

Updated: 2026-07-20·22 commands

Quick Start

``bash act # Run all workflows (push event) act -l # List all workflows act -j build # Run a specific job act pull_request # Simulate PR event act --secret-file .secrets # Load secrets from file act --reuse # Reuse containers for speed ``

Install & Setup(3)

CommandLevel
act --help
Show act help
Basic
act --version
Show act version
Basic
.actrc
Default act config file (project root or ~/.actrc)
Intermediate

Basic Usage(7)

CommandLevel
act
Run all workflows (default trigger: push)
Basic
act -l
List all available workflows and their events
Basic
act -g
Display workflow structure as a graph
Basic
act -j
Run a specific job (not the entire workflow)
Basic
act -W
Specify a workflow file or directory
Basic
act --defaultbranch
Specify the default branch name (default: main)
Intermediate
act --container-architecture
Specify container architecture (e.g., linux/amd64, linux/arm64)
Intermediate

Event Triggers(4)

CommandLevel
act pull_request
Run workflows simulating a pull_request event
Basic
act push
Run workflows simulating a push event
Basic
act schedule
Run workflows simulating a schedule event
Intermediate
act workflow_dispatch
Run workflows simulating a workflow_dispatch event
Intermediate

Secrets & Env(4)

CommandLevel
act -s
Set a secret (multiple -s flags allowed)
Intermediate
act --secret-file
Load secrets from a file (one KEY=value per line)
Intermediate
act --env-file
Load environment variables from a file
Intermediate
act --var
Set GitHub Actions variables
Intermediate

Advanced(4)

CommandLevel
act -P
Custom platform-to-image mapping (for newer versions)
Expert
act --pull=false
Disable pulling new Docker images (use cached)
Intermediate
act --reuse
Reuse containers from the previous run (faster debugging)
Intermediate
act --bind
Bind mount the working directory into the container (instead of copy)
Expert

FAQ

This cheatsheet is compiled from official tool documentation. Last updated: 2026-07-20.