From 09a81e9b0e67df7eb24f0b26d6c643e0d6003c2f Mon Sep 17 00:00:00 2001 From: forbes Date: Tue, 27 Jan 2026 14:45:42 -0600 Subject: [PATCH] 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 --- .gitea/workflows/build.yml | 35 +++++------------------------------ .gitea/workflows/release.yml | 36 ++++++------------------------------ .gitmodules | 4 ++-- 3 files changed, 13 insertions(+), 62 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 21e42525e6..09b1cce860 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -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 diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 5da4d2c499..2481e05a50 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -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 diff --git a/.gitmodules b/.gitmodules index 85465a0468..e4c2e1e425 100644 --- a/.gitmodules +++ b/.gitmodules @@ -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