diff --git a/.github/workflows/submodule.yml b/.github/workflows/submodule.yml index 8a93d8d31..4a91db279 100644 --- a/.github/workflows/submodule.yml +++ b/.github/workflows/submodule.yml @@ -12,11 +12,14 @@ jobs: with: token: ${{ secrets.PA_TOKEN }} submodules: true + - name: Retrieve Github Host Key + run: echo "HOSTS=$(ssh-keyscan github.com)" >> $GITHUB_OUTPUT + id: known_hosts - name: Install SSH key uses: shimataro/ssh-key-action@v2 with: key: ${{ secrets.SSH_KEY }} - known_hosts: ${{ secrets.KNOWN_HOSTS }} + known_hosts: ${{ steps.known_hosts.outputs.HOSTS }} - name: Update submodule run: | git submodule update --init --recursive --checkout -f --remote -- "${{github.event.client_payload.module}}"