Skip to content

Commit

Permalink
Using webfactory/ssh-agent
Browse files Browse the repository at this point in the history
  • Loading branch information
movchan74 committed Oct 27, 2023
1 parent 6487e09 commit d322a1b
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
ssh-private-key: |
${{ secrets.GH_AANA_SDK_KEY }}
${{ secrets.GH_MOBIUS_PIPELINE_KEY }}
- name: Checkout code and submodules
uses: actions/checkout@v3
with:
Expand Down

0 comments on commit d322a1b

Please sign in to comment.