ci: switch mirror workflow to HTTPS token authentication
This commit is contained in:
13
.github/workflows/mirror-to-privacyguides.yml
vendored
13
.github/workflows/mirror-to-privacyguides.yml
vendored
@@ -15,15 +15,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up SSH
|
- name: Push to PrivacyGuides (HTTPS)
|
||||||
run: |
|
env:
|
||||||
mkdir -p ~/.ssh
|
PRIVACYGUIDES_TOKEN: ${{ secrets.PRIVACYGUIDES_TOKEN }}
|
||||||
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
|
|
||||||
run: |
|
run: |
|
||||||
git remote remove privacyguides || true
|
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
|
git push privacyguides main --force
|
||||||
|
|||||||
Reference in New Issue
Block a user