Revert to simple HTTPS cloning for public repos

- Use Forgejo checkout action with HTTPS (no SSH)
- Update submodule URLs from SSH to HTTPS
- All repos are now public, no authentication needed
This commit is contained in:
forbes
2026-01-27 14:45:42 -06:00
parent 5309e5503f
commit 09a81e9b0e
3 changed files with 13 additions and 62 deletions

View File

@@ -28,36 +28,11 @@ jobs:
fi
node --version
- name: Setup SSH and checkout
shell: bash
env:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
run: |
# Setup SSH key
mkdir -p ~/.ssh
echo "$DEPLOY_KEY" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
# Get host key and add to known_hosts
ssh-keyscan -t ed25519,rsa,ecdsa gitea.kindred.internal >> ~/.ssh/known_hosts 2>/dev/null
chmod 600 ~/.ssh/known_hosts
# Configure SSH to bypass SSSD KnownHostsCommand
cat > ~/.ssh/config << 'EOF'
Host gitea.kindred.internal
IdentityFile ~/.ssh/id_ed25519
StrictHostKeyChecking no
UserKnownHostsFile ~/.ssh/known_hosts
KnownHostsCommand none
EOF
chmod 600 ~/.ssh/config
# Set GIT_SSH_COMMAND to use our config
export GIT_SSH_COMMAND="ssh -F ~/.ssh/config"
# Clone repository
git clone --recurse-submodules git@gitea.kindred.internal:kindred/create-0070.git .
git fetch --tags
- name: Checkout repository
uses: https://code.forgejo.org/actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Install pixi if needed
shell: bash

View File

@@ -36,36 +36,12 @@ jobs:
fi
node --version
- name: Setup SSH and checkout
shell: bash
env:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
run: |
# Setup SSH key
mkdir -p ~/.ssh
echo "$DEPLOY_KEY" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
# Get host key and add to known_hosts
ssh-keyscan -t ed25519,rsa,ecdsa gitea.kindred.internal >> ~/.ssh/known_hosts 2>/dev/null
chmod 600 ~/.ssh/known_hosts
# Configure SSH to bypass SSSD KnownHostsCommand
cat > ~/.ssh/config << 'EOF'
Host gitea.kindred.internal
IdentityFile ~/.ssh/id_ed25519
StrictHostKeyChecking no
UserKnownHostsFile ~/.ssh/known_hosts
KnownHostsCommand none
EOF
chmod 600 ~/.ssh/config
# Set GIT_SSH_COMMAND to use our config
export GIT_SSH_COMMAND="ssh -F ~/.ssh/config"
# Clone repository
git clone --recurse-submodules git@gitea.kindred.internal:kindred/create-0070.git .
git fetch --tags
- name: Checkout repository
uses: https://code.forgejo.org/actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
fetch-tags: true
- name: Install pixi if needed
shell: bash

4
.gitmodules vendored
View File

@@ -12,7 +12,7 @@
url = https://github.com/FreeCAD/AddonManager.git
[submodule "mods/ztools"]
path = mods/ztools
url = git@gitea.kindred.internal:kindred/ztools-0065.git
url = https://gitea.kindred.internal/kindred/ztools-0065.git
[submodule "mods/silo"]
path = mods/silo
url = git@gitea.kindred.internal:kindred/silo-0062.git
url = https://gitea.kindred.internal/kindred/silo-0062.git