Conversation
The GitHub Actions spec requires runner.arch to be one of X86, X64, ARM, ARM64 (uppercase). When using -self-hosted, RUNNER_ARCH is derived from runtime.GOARCH via goArchToActionArch(). Go reports ARM64 hosts as "arm64" which was missing from the mapper, causing it to fall through and be returned verbatim in lowercase. The docker_run.go path already handled "arm64" correctly; this aligns host_environment.go with the same mapping. Fixes nektos#6181
arslanatpermission
approved these changes
Sep 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
When running
actwith-P ubuntu-latest=-self-hostedon an ARM64 host,RUNNER_ARCHandrunner.archwere set toarm64(lowercase) instead ofARM64, violating the GitHub Actions spec which defines the valid values asX86,X64,ARM,ARM64(always uppercase).Root cause:
goArchToActionArch()inpkg/container/host_environment.gohad a mapping for"aarch64" -> "ARM64"but was missing"arm64", which is what Go'sruntime.GOARCHreturns on ARM64 hosts. The value fell through the mapper and was returned verbatim in lowercase.The Docker container path (
docker_run.go) already handled"arm64"correctly - this alignshost_environment.gowith the same mapping.Change
One line added to
goArchToActionArch()inpkg/container/host_environment.go:Fixes #6181