Skip to content

Commit

Permalink
Directly add key to ssh agent
Browse files Browse the repository at this point in the history
  • Loading branch information
movchan74 committed Oct 27, 2023
1 parent ee89441 commit 40ff9eb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ jobs:
uses: actions/checkout@v3
with:
ssh-key: ${{ secrets.GH_AANA_SDK_KEY }}
- name: Setup SSH agent
uses: webfactory/[email protected]
with:
ssh-private-key: |
${{ secrets.GH_AANA_SDK_KEY }}
${{ secrets.GH_MOBIUS_PIPELINE_KEY }}
- name: Checkout submodules
submodules: 'false' # Disable automatic submodule checkout
- name: Setup SSH key for submodule
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: |
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
ssh-add - <<< "${{ secrets.GH_MOBIUS_PIPELINE_KEY }}"
- name: Checkout submodule
run: |
git submodule sync --recursive
git submodule update --init --recursive
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
Expand Down

0 comments on commit 40ff9eb

Please sign in to comment.