[GH-ISSUE #2094] Does act not work for GitHub Enterprise Server with SSH authentication? #1002

Closed
opened 2026-03-01 21:48:06 +03:00 by kerem · 1 comment
Owner

Originally created by @satyapadala on GitHub (Nov 15, 2023).
Original GitHub issue: https://github.com/nektos/act/issues/2094

Bug report info

act version:            0.2.54
GOOS:                   linux
GOARCH:                 amd64
NumCPU:                 96
Docker host:            tcp://localhost:2376
Sockets found:
	/var/run/docker.sock
Config files:
	/home/user/.actrc:
		-P ubuntu-latest=catthehacker/ubuntu:act-latest
		-P ubuntu-22.04=catthehacker/ubuntu:act-22.04
		-P ubuntu-20.04=catthehacker/ubuntu:act-20.04
		-P ubuntu-18.04=catthehacker/ubuntu:act-18.04
Build info:
	Go version:            go1.21.3
	Module path:           command-line-arguments
	Main version:
	Main path:
	Main checksum:
	Build settings:
		-buildmode:           exe
		-compiler:            gc
		DefaultGODEBUG:       panicnil=1
		CGO_ENABLED:          1
		CGO_CFLAGS:
		CGO_CPPFLAGS:
		CGO_CXXFLAGS:
		CGO_LDFLAGS:
		GOARCH:               amd64
		GOOS:                 linux
		GOAMD64:              v1
Docker Engine:
	Engine version:        20.10.6
	Engine runtime:        runc
	Cgroup version:        1
	Cgroup driver:         cgroupfs
	Storage driver:        overlay2
	Registry URI:          https://index.docker.io/v1/
	OS:                    Alpine Linux v3.13 (containerized)
	OS type:               linux
	OS version:            3.13.5
	OS arch:               x86_64
	OS kernel:             5.15.107+
	OS CPU:                96
	OS memory:             774019 MB
	Security options:
		name=apparmor
		name=seccomp,profile=default

Command used with act

go run main.go push  -P linux=nektos/act-environments-ubuntu:18.04 -e ~/personal/github/XXX/.github/workflows/testdata/XXX_event.json --secret-file x/github/github-actions/gha.env -C ~/personal/github/XXX --github-instance xxx.yyy/xxx-org  --env-file x/gha.env --verbose

Describe issue

It looks like act does not seem to handle ssh authentication for github enterprise servers.

github.com/nektos/act@7693697f4c/pkg/runner/run_context.go (L845)

Shouldn't this be dynamic based on some kind of user input on whether we would require https or ssh?

No response

Workflow content

[...]

Relevant log output

-

Additional information

No response

Originally created by @satyapadala on GitHub (Nov 15, 2023). Original GitHub issue: https://github.com/nektos/act/issues/2094 ### Bug report info ```plain text act version: 0.2.54 GOOS: linux GOARCH: amd64 NumCPU: 96 Docker host: tcp://localhost:2376 Sockets found: /var/run/docker.sock Config files: /home/user/.actrc: -P ubuntu-latest=catthehacker/ubuntu:act-latest -P ubuntu-22.04=catthehacker/ubuntu:act-22.04 -P ubuntu-20.04=catthehacker/ubuntu:act-20.04 -P ubuntu-18.04=catthehacker/ubuntu:act-18.04 Build info: Go version: go1.21.3 Module path: command-line-arguments Main version: Main path: Main checksum: Build settings: -buildmode: exe -compiler: gc DefaultGODEBUG: panicnil=1 CGO_ENABLED: 1 CGO_CFLAGS: CGO_CPPFLAGS: CGO_CXXFLAGS: CGO_LDFLAGS: GOARCH: amd64 GOOS: linux GOAMD64: v1 Docker Engine: Engine version: 20.10.6 Engine runtime: runc Cgroup version: 1 Cgroup driver: cgroupfs Storage driver: overlay2 Registry URI: https://index.docker.io/v1/ OS: Alpine Linux v3.13 (containerized) OS type: linux OS version: 3.13.5 OS arch: x86_64 OS kernel: 5.15.107+ OS CPU: 96 OS memory: 774019 MB Security options: name=apparmor name=seccomp,profile=default ``` ### Command used with act ```sh go run main.go push -P linux=nektos/act-environments-ubuntu:18.04 -e ~/personal/github/XXX/.github/workflows/testdata/XXX_event.json --secret-file x/github/github-actions/gha.env -C ~/personal/github/XXX --github-instance xxx.yyy/xxx-org --env-file x/gha.env --verbose ``` ### Describe issue It looks like act does not seem to handle ssh authentication for github enterprise servers. https://github.com/nektos/act/blob/7693697f4cc60143c0561668b1c6fcb4bf733b94/pkg/runner/run_context.go#L845 Shouldn't this be dynamic based on some kind of user input on whether we would require `https` or `ssh`? ### Link to GitHub repository _No response_ ### Workflow content ```yml [...] ``` ### Relevant log output ```sh - ``` ### Additional information _No response_
kerem 2026-03-01 21:48:06 +03:00
Author
Owner

@github-actions[bot] commented on GitHub (May 14, 2024):

Issue is stale and will be closed in 14 days unless there is new activity

<!-- gh-comment-id:2109034502 --> @github-actions[bot] commented on GitHub (May 14, 2024): Issue is stale and will be closed in 14 days unless there is new activity
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#1002
No description provided.