Here is a small tips I use when I share cache between different jobs which use a different configuration / user:
steps:
restore_cache:
name: Restore project's cache
keys:
- source-v1-{{ .Environment.CIRCLE_SHA1 }}
run:
name: Fix permissions
command: sudo chown -R $(id -u):$(id -g) .