Wrong working directory
April 30, 2026 ยท View on GitHub
Playbook ID: working-directory
Category: build
Severity: medium
Tags: directory, path, config
What this failure means
A command ran in an unexpected working directory. Relative paths expected a specific directory layout that did not exist at the time of execution.
Common log signals
no such file or directory
cannot find the path specified
chdir
not a git repository
error: no such file
working directory not found
failed to change directory
Diagnosis
A command ran in an unexpected working directory. Relative paths expected a specific directory layout that did not exist at the time of execution.
Fix steps
- Check the
working-directoryconfiguration in your CI workflow file. - Use absolute paths or
$(pwd)references where possible. - Add
ls -labefore the failing step to confirm the directory contents. - Verify the repository structure matches what the workflow expects.
Validation
- Re-run the failing workflow step.
- Confirm the original failure signature for Wrong working directory is gone.
Likely files to inspect
(Not specified.)
Run Faultline
faultline analyze build.log
faultline explain working-directory
faultline workflow build.log --json --mode agent
Search phrases this page answers
- Wrong working directory
- Build: wrong working directory
- cannot find the path specified
- GitHub Actions wrong working directory
- faultline explain working-directory
Generated from playbooks/bundled/log/build/working-directory.yaml. Do not edit directly โ run make docs-generate.