From d322a1b18144acf0bfdad35f3c76fa6706b7f0ad Mon Sep 17 00:00:00 2001 From: movchan74 Date: Fri, 27 Oct 2023 12:30:05 +0000 Subject: [PATCH] Using webfactory/ssh-agent --- .github/workflows/python-package.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index e84eb0fd..0101b0ad 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -22,16 +22,12 @@ jobs: python-version: ["3.10"] steps: - - name: Setup .ssh directory - run: mkdir -p ~/.ssh - - name: Setup SSH keys - run: | - echo "${{ secrets.GH_AANA_SDK_KEY }}" > ~/.ssh/id_rsa_main - echo "${{ secrets.GH_MOBIUS_PIPELINE_KEY }}" > ~/.ssh/id_rsa_mobius_pipeline - chmod 600 ~/.ssh/id_rsa_main - chmod 600 ~/.ssh/id_rsa_mobius_pipeline - ssh-add ~/.ssh/id_rsa_main - ssh-add ~/.ssh/id_rsa_mobius_pipeline + - name: Setup SSH agent + uses: webfactory/ssh-agent@v0.8.0 + with: + ssh-private-key: | + ${{ secrets.GH_AANA_SDK_KEY }} + ${{ secrets.GH_MOBIUS_PIPELINE_KEY }} - name: Checkout code and submodules uses: actions/checkout@v3 with: