`fatal: detected dubious ownership in repository at '/__w/app/app'` in a container job on a self-hosted runner.
IntermediateTroubleshootingRunners, Self-hosted & ARC
Answer
Likely causes → Workspace owned by a different UID than the container user (root vs runner user), triggering git's safe.directory check.
Diagnose → ls -ln in the workspace and id in the container.
Fix → git config --global --add safe.directory "$GITHUB_WORKSPACE", or run the container with the runner's UID (options: --user 1001).
Prevent → Ephemeral runners and consistent UIDs across images.
More on Runners, Self-hosted & ARC
Job stuck at `Waiting for a runner to pick up this job...`Beginner`This request was automatically failed because there were no enabled runners online to process the request for more than 1 days.`Beginner`Must not run with sudo` when running `./config.sh`.Beginner`Http response code: NotFound from 'POST https://api.github.com/actions/runner-registration'` during `config.sh`.BeginnerSelf-hosted runner logs: `Runner version v2.311.0 is deprecated and cannot receive messages.`IntermediateSelf-hosted runner jobs fail with `EACCES: permission denied, unlink '/home/runner/_work/app/app/dist/index.js'` at checkout.Intermediate