[GH-ISSUE #1726] The --github-instance parameter does not set the ${{ github.server_url }} argument. #845

Closed
opened 2026-03-01 21:46:51 +03:00 by kerem · 0 comments
Owner

Originally created by @jbvirt on GitHub (Apr 11, 2023).
Original GitHub issue: https://github.com/nektos/act/issues/1726

Originally assigned to: @KnisterPeter on GitHub.

Bug report info

act version:            0.2.44
GOOS:                   linux
GOARCH:                 amd64
NumCPU:                 16
Docker host:            DOCKER_HOST environment variable is unset/empty.
Sockets found:
        /var/run/docker.sock
Config files:
        /home/joshua-b/.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.18.10
        Module path:           github.com/nektos/act
        Main version:          (devel)
        Main path:             github.com/nektos/act
        Main checksum:
        Build settings:
                -compiler:            gc
                -ldflags:             -s -w -X main.version=0.2.44 -X main.commit=220d6f1251aea75c378e5a98546f43cd918e1892 -X main.date=2023-04-01T02:18:17Z -X main.builtBy=goreleaser
                CGO_ENABLED:          0
                GOARCH:               amd64
                GOOS:                 linux
                GOAMD64:              v1
                vcs:                  git
                vcs.revision:         220d6f1251aea75c378e5a98546f43cd918e1892
                vcs.time:             2023-04-01T02:17:52Z
                vcs.modified:         false
Docker Engine:
        Engine version:        20.10.22
        Engine runtime:        runc
        Cgroup version:        1
        Cgroup driver:         cgroupfs
        Storage driver:        overlay2
        Registry URI:          https://index.docker.io/v1/
        OS:                    Docker Desktop
        OS type:               linux
        OS version:
        OS arch:               x86_64
        OS kernel:             5.10.102.1-microsoft-standard-WSL2
        OS CPU:                16
        OS memory:             15879 MB
        Security options:
                name=seccomp,profile=default

Command used with act

act --github-instance github.mycompanany.com

Describe issue

The variable ${{ github.server_url }} is empty by default, and assigning a value to --github-instance does not fill it.
I'd expect ${{ github.server_url }} to be something like https://github.com by default and then change if you assigned something to --github-instance.

No response

Workflow content

name: Test Server URL
on: push

jobs:
  build:
    runs-on: ubuntu-18.04
    steps:
    - run: |
        echo ${{ github.server_url }}

Relevant log output

N/A

Additional information

No response

Originally created by @jbvirt on GitHub (Apr 11, 2023). Original GitHub issue: https://github.com/nektos/act/issues/1726 Originally assigned to: @KnisterPeter on GitHub. ### Bug report info ```plain text act version: 0.2.44 GOOS: linux GOARCH: amd64 NumCPU: 16 Docker host: DOCKER_HOST environment variable is unset/empty. Sockets found: /var/run/docker.sock Config files: /home/joshua-b/.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.18.10 Module path: github.com/nektos/act Main version: (devel) Main path: github.com/nektos/act Main checksum: Build settings: -compiler: gc -ldflags: -s -w -X main.version=0.2.44 -X main.commit=220d6f1251aea75c378e5a98546f43cd918e1892 -X main.date=2023-04-01T02:18:17Z -X main.builtBy=goreleaser CGO_ENABLED: 0 GOARCH: amd64 GOOS: linux GOAMD64: v1 vcs: git vcs.revision: 220d6f1251aea75c378e5a98546f43cd918e1892 vcs.time: 2023-04-01T02:17:52Z vcs.modified: false Docker Engine: Engine version: 20.10.22 Engine runtime: runc Cgroup version: 1 Cgroup driver: cgroupfs Storage driver: overlay2 Registry URI: https://index.docker.io/v1/ OS: Docker Desktop OS type: linux OS version: OS arch: x86_64 OS kernel: 5.10.102.1-microsoft-standard-WSL2 OS CPU: 16 OS memory: 15879 MB Security options: name=seccomp,profile=default ``` ### Command used with act ```sh act --github-instance github.mycompanany.com ``` ### Describe issue The variable `${{ github.server_url }}` is empty by default, and assigning a value to `--github-instance` does not fill it. I'd expect `${{ github.server_url }}` to be something like `https://github.com` by default and then change if you assigned something to `--github-instance`. ### Link to GitHub repository _No response_ ### Workflow content ```yml name: Test Server URL on: push jobs: build: runs-on: ubuntu-18.04 steps: - run: | echo ${{ github.server_url }} ``` ### Relevant log output ```sh N/A ``` ### Additional information _No response_
kerem 2026-03-01 21:46:51 +03:00
  • closed this issue
  • added the
    kind/bug
    label
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#845
No description provided.