-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Open
Description
Option 1 wasnt working, had to change to option 2
(1)
steps:
- name: Setup SSH key for submodule access
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SERVICE_FINERGE_DATA_INFRA_SSH_KEY }}
- uses: actions/checkout@v4
with:
submodules: true
(2)
steps:
- name: Setup SSH key for submodule access
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SERVICE_FINERGE_DATA_INFRA_SSH_KEY }}
# Checkout main repository without submodules first
- uses: actions/checkout@v4
with:
submodules: false
# Configure Git to use SSH instead of HTTPS for GitHub, then initialize submodules
# This prevents GitHub Actions from rewriting SSH URLs to HTTPS
- name: Initialize and update submodules with SSH
run: |
git config --global url."[email protected]:".insteadOf "https://github.com/"
git submodule update --init --recursive
EndrII
Metadata
Metadata
Assignees
Labels
No labels