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
fix(actions): use SSH_DOMAIN for server URL when different from main domain
When SSH_DOMAIN is configured to use a different hostname than the main
AppURL domain, Gitea Actions should provide the SSH domain in the server_url
context to ensure checkout actions connect to the correct SSH hostname.
This fixes an issue where workflows would fail with 'Host key verification
failed' because checkout actions were trying to connect to the wrong SSH
hostname when SSH_DOMAIN was configured differently from the main domain.
Fixes: Actions workflows failing when SSH_DOMAIN != main domain
Before: server_url always used AppURL domain (e.g., git.example.com)
After: server_url uses SSH_DOMAIN when different (e.g., git-ssh.example.com)
"run_number": strconv.FormatInt(run.Index, 10), // string, A unique number for each run of a particular workflow in a repository. This number begins at 1 for the workflow's first run, and increments with each new run. This number does not change if you re-run the workflow run.
78
112
"run_attempt": "", // string, A unique number for each attempt of a particular workflow run in a repository. This number begins at 1 for the workflow run's first attempt, and increments with each re-run.
79
113
"secret_source": "Actions", // string, The source of a secret used in a workflow. Possible values are None, Actions, Dependabot, or Codespaces.
80
-
"server_url": setting.AppURL, // string, The URL of the GitHub server. For example: https://github.com.
114
+
"server_url": getServerURLForActions(), // string, The URL of the GitHub server. For SSH operations, this uses SSH_DOMAIN if configured differently from the main domain.
81
115
"sha": sha, // string, The commit SHA that triggered the workflow. The value of this commit SHA depends on the event that triggered the workflow. For more information, see "Events that trigger workflows." For example, ffac537e6cbbf934b08745a378932722df287a53.
82
116
"triggering_actor": "", // string, The username of the user that initiated the workflow run. If the workflow run is a re-run, this value may differ from github.actor. Any workflow re-runs will use the privileges of github.actor, even if the actor initiating the re-run (github.triggering_actor) has different privileges.
83
117
"workflow": run.WorkflowID, // string, The name of the workflow. If the workflow file doesn't specify a name, the value of this property is the full path of the workflow file in the repository.
0 commit comments