Actions State and Secrets
Manages GitHub Action phase boundaries, secret masking, and detached process lifecycles using Effect-ts patterns.
Actions State and Secrets provides specialized guidance for building robust GitHub Actions with Effect-ts and @effected/github-actions. It solves the unique challenges of crossing separate process boundaries (pre, main, and post phases) through GITHUB_STATE and STATE_* environment variables. It enforces secure handling and automatic masking of Redacted secrets, distinguishes cleanly between ActionState and ActionOutputs, safely reaps detached child processes, and prevents common serialization pitfalls like silent data loss from incorrect Schema encodings.
Key Features
01Cross-phase state persistence across GitHub Action pre, main, and post boundaries
02Safe detached child process lifecycle management and PID validation
033 GitHub stars
04Secure secret lifecycle management with automatic masking via Redacted schemas
05DryRun execution guards with fallback values for workflow rehearsals
06Clean distinction and enforcement between ActionState and ActionOutputs
Use Cases
01Spawning and cleanly terminating background runner processes across action phases
02Masking sensitive secrets before writing state to GITHUB_STATE files
03Persisting authentication tokens or ephemeral setup data from pre to post phases