From 2ae65eb74951b51404098036f7a5135b2f83eec0 Mon Sep 17 00:00:00 2001 From: lockbitchat Date: Mon, 20 Oct 2025 12:44:59 -0400 Subject: [PATCH] ci: switch mirror workflow to HTTPS token authentication --- .github/workflows/mirror-to-privacyguides.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/mirror-to-privacyguides.yml b/.github/workflows/mirror-to-privacyguides.yml index 573ebcd..29a39b3 100644 --- a/.github/workflows/mirror-to-privacyguides.yml +++ b/.github/workflows/mirror-to-privacyguides.yml @@ -15,15 +15,10 @@ jobs: with: fetch-depth: 0 - - name: Set up SSH - run: | - mkdir -p ~/.ssh - echo "${{ secrets.PRIVACYGUIDES_SSH_KEY }}" > ~/.ssh/id_ed25519 - chmod 600 ~/.ssh/id_ed25519 - ssh-keyscan code.privacyguides.dev >> ~/.ssh/known_hosts - - - name: Push to PrivacyGuides + - name: Push to PrivacyGuides (HTTPS) + env: + PRIVACYGUIDES_TOKEN: ${{ secrets.PRIVACYGUIDES_TOKEN }} run: | git remote remove privacyguides || true - git remote add privacyguides git@code.privacyguides.dev:SecureBitChat/securebit-chat.git + git remote add privacyguides https://SecureBitChat:${PRIVACYGUIDES_TOKEN}@code.privacyguides.dev/SecureBitChat/securebit-chat.git git push privacyguides main --force