You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
hypatia-scan.yml template: ${{ env.HOME }} collapses to empty string, breaking every scan #141
The hypatia-scan.yml workflow template (as distributed via rsr-template-repo and propagated to repos like hyperpolymath/airborne-submarine-squadron) uses ${{ env.HOME }} in a working-directory: field. GitHub Actions
does not auto-populate env.HOME in the env context, so this
expression evaluates to the empty string, and the working-directory
becomes /hypatia (an absolute path that doesn't exist on the runner).
Every Hypatia scan on affected repos fails at the "Build Hypatia
scanner (if needed)" step with:
An error occurred trying to start process '/usr/bin/bash' with working
directory '/hypatia'. No such file or directory
Reproduction
Any repo that's pulled the current hypatia-scan.yml from the template:
${{ env.HOME }} resolves to "" because HOME is a shell environment
variable, not a GitHub Actions env-context variable. Adding env: { HOME: \${{ env.HOME }} } doesn't help because the env: context
is populated from workflow/job/step env: blocks, not from the runner
shell.
Fix
Resolve \$HOME inside a bash step instead of relying on the working-directory key:
- name: Build Hypatia scanner (if needed)run: | cd "\$HOME/hypatia" if [ ! -f hypatia ]; then mix deps.get mix escript.build fi
Every downstream repo using this template currently has zero Hypatia
coverage even though the workflow appears scheduled — the failure is
silent unless someone checks the Actions tab.
Recommend patching the template and also running a one-off sweep of
repos that have pulled this workflow file to push the fix.
Fixed in 8ac6e81 (hypatia) and propagated in c8de056 (rsr-template-repo). The workflow no longer uses ; it now uses inside the run block, avoiding the GitHub Actions env-context empty-string trap.
Activity
hyperpolymath commentedon Apr 7, 2026
Fixed in 8ac6e81 (hypatia) and propagated in c8de056 (rsr-template-repo). The workflow no longer uses ; it now uses inside the run block, avoiding the GitHub Actions env-context empty-string trap.
hyperpolymath commentedon Apr 7, 2026
Resolution details (clean copy):
hyperpolymath/hypatiacommit8ac6e81.hyperpolymath/rsr-template-repocommitc8de056.working-directory: ${{ env.HOME }}/hypatia.cd "$HOME/hypatia"insiderun, which avoids the Actions env-context empty-string expansion trap.docs: reflect M9 / M10 / M13 / M14 / M15 / M16 + Issue #141 done
chore: merge origin/main into branch