-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No support for custom SSH port #1315
Comments
I have the same problem |
Hi, Note: I'm using this on a gitea/act runner (running ubuntu:latest) so you might have to adjust it a little bit (e.g. paths). I also only tested it with v3, not any older or newer tags like v2 and v4.
To use this, you have to replace Explanation: |
Thank you, @freeware-superman! With your suggestion, the checkout v4 action can be successfully run on my self-hosted Gitea instance. jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-latest
steps:
- name: Git Setup
run: |
mkdir -p ~/.ssh
echo 'Host gitea.local' >> ~/.ssh/config
echo ' HostName <gitea_ip>' >> ~/.ssh/config
echo ' Port <gitea_ssh_port>' >> ~/.ssh/config
cat ~/.ssh/config
- name: Check out repository code
uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.DEPLOY_KEY }}
github-server-url: 'http://gitea.local'
ssh-known-hosts: ${{ vars.SSH_KNOWN_HOSTS }} Pre-requirements:
|
I don't believe GHES allows changing the SSH Port - https://docs.github.com/en/enterprise-server@3.10/admin/configuring-settings/configuring-network-settings/network-ports#application-ports-for-end-users We aren't able to support other git providers with this action at this time. We don't test compatibility with third-party solutions and thus can't maintain or support any features created exclusively for those third-parties. |
Seems like
github-server-url
is dropping custom SSH port, while URL is valid:Excerpt from logs:
The text was updated successfully, but these errors were encountered: