Repository: nektos/act (language: go)

Issue:
The runner.arch environment variables need to be updated 
The runner.arch environment variables are upper case in github runners and are used by actions like https://github.com/sigstore/cosign-installer to install scripts. 


Discussion / hints:

Fix patch:
diff --git a/pkg/container/docker_run.go b/pkg/container/docker_run.go
index df296e0d083..65a373ffb76 100644
--- a/pkg/container/docker_run.go
+++ b/pkg/container/docker_run.go
@@ -240,8 +240,8 @@ func RunnerArch(ctx context.Context) string {
 
 	archMapper := map[string]string{
 		"x86_64":  "X64",
-		"386":     "x86",
-		"aarch64": "arm64",
+		"386":     "X86",
+		"aarch64": "ARM64",
 	}
 	if arch, ok := archMapper[info.Architecture]; ok {
 		return arch
diff --git a/pkg/container/host_environment.go b/pkg/container/host_environment.go
index e0a18c7c526..c6a22288c4c 100644
--- a/pkg/container/host_environment.go
+++ b/pkg/container/host_environment.go
@@ -387,11 +387,13 @@ func (*HostEnvironment) JoinPathVariable(paths ...string) string {
 	return strings.Join(paths, string(filepath.ListSeparator))
 }
 
+// Reference for Arch values for runner.arch
+// https://docs.github.com/en/actions/learn-github-actions/contexts#runner-context
 func goArchToActionArch(arch string) string {
 	archMapper := map[string]string{
 		"x86_64":  "X64",
-		"386":     "x86",
-		"aarch64": "arm64",
+		"386":     "X86",
+		"aarch64": "ARM64",
 	}
 	if arch, ok := archMapper[arch]; ok {
 		return arch


Test patch: