overwire seed-mocks
Walks every uses: reference in a workflow and writes a mock contract for each into .overwire/mocks/, resolving each action’s real action.yml to derive inputs and outputs.
overwire seed-mocks [options] <file>Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
file | Path to a .github/workflows/*.yml file. |
Options
Section titled “Options”| Option | Description |
|---|---|
-o, --out <dir> | Directory to write contracts into. |
-w, --workspace <dir> | Workspace root for ./local references (default: current working directory). |
--force | Overwrite existing contract files. |
--include-local | Also seed contracts for ./local actions. |
--from-run <run-id> | Generate contracts from a completed run instead of fetching actions, capturing the outputs the run actually produced. |
--config-root <dir> | Project config root (for --from-run). |
Examples
Section titled “Examples”# Seed contracts for every third-party action in a workflowoverwire seed-mocks .github/workflows/ci.yml
# Derive contracts from a real recorded runoverwire seed-mocks .github/workflows/ci.yml --from-run 01JXAMPLESee Mock contracts for the contract format and matching rules.
Overwire is not affiliated with, endorsed by, or sponsored by GitHub, Inc., Microsoft Corporation, or Docker, Inc. GitHub and GitHub Actions are trademarks of GitHub, Inc.