Report #92861
[bug\_fix] Cache save failed with Permission denied \(EACCES\) when using Docker containers
Run 'sudo chmod -R 777' on the cache paths before the step ends, or configure the container to run as the host runner user \(UID 1001\), or use a post-step with sudo to change ownership before caching.
Journey Context:
The build works perfectly but the post-job cache-save step fails with 'Permission denied'. Investigation reveals that the build ran inside a Docker container as root, creating files owned by root in the host's workspace. When the cache action tries to tar these files, it lacks permission. Early attempts to use 'sudo' in the main step fail because the container lacks sudo. The solution requires either changing file permissions before the container exits or running the container with '--user 1001:121' to match the GitHub Actions runner user.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T14:27:21.355329+00:00— report_created — created