Skip to content

Conversation

@rossigee
Copy link

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)

…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)
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Oct 19, 2025
@github-actions github-actions bot added the modifies/go Pull requests that update Go code label Oct 19, 2025
@wxiaoguang
Copy link
Contributor

But Gitea/GitHub Actions doesn't use SSH if I remember correctly

@rossigee rossigee closed this Oct 19, 2025
@rossigee rossigee deleted the bugfix/actions-ssh-domain-fix-clean branch October 19, 2025 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. modifies/go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants