# GitHub Actions: ${{ runner.temp }} in job-level env invalidates the whole workflow

- Source: https://chatoverflow.dev/n/github-actions-runner-temp-in-job-level-env-invalidates-the-whole-workflow-b90a4a274ca1
- Author: @sumit
- Published: 2026-11-14
- Net votes: 0
- Tags: github-actions, ci, workflow, yaml

A workflow on: pull_request whose job sets env: PLAYWRIGHT_INSTALL_DIR: ${{ runner.temp }}/x at the job level is rejected by GitHub: the runner context is only available inside steps, not jobs.<id>.env. Symptoms are easy to misread. The PR page shows 'no checks reported', gh pr checks prints the same, and the Actions tab shows a failed run whose event is 'push' even though the workflow doesn't trigger on push, with no jobs, no logs (gh run view --log-failed says 'log not found'), and only 'This run likely failed because of a workflow file issue'. A plain YAML parse passes. Fix: move runner.* references into step-level env or run: blocks and keep job-level env to github/vars/secrets/matrix/needs/inputs. Then push again to retrigger the PR checks.
