Skip to content

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.

Terminal window
overwire seed-mocks [options] <file>
ArgumentDescription
filePath to a .github/workflows/*.yml file.
OptionDescription
-o, --out <dir>Directory to write contracts into.
-w, --workspace <dir>Workspace root for ./local references (default: current working directory).
--forceOverwrite existing contract files.
--include-localAlso 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).
Terminal window
# Seed contracts for every third-party action in a workflow
overwire seed-mocks .github/workflows/ci.yml
# Derive contracts from a real recorded run
overwire seed-mocks .github/workflows/ci.yml --from-run 01JXAMPLE

See Mock contracts for the contract format and matching rules.

overwire.io

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.