Understanding GitHub Actions working directory

Where GitHub Actions stores files during a run — default workspace, working-directory scopes, action paths, and path-related environment variables.

GitHub Actions workflows are easier to debug when you know where the runner puts repository files, downloaded actions, and temp/cache directories.

This article covers default paths, setting working-directory at workflow/job/step level, useful env vars like GITHUB_WORKSPACE and RUNNER_TEMP, and practical tips for portable workflows.