Skip to content

Commit

Permalink
Use SSH-Key for checkout instead of specific tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
sihyung-maxim committed May 7, 2024
1 parent da6f35a commit 2fd1c08
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/zephyr-hal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
with:
# Specific Branch, tag, or SHA to checkout (uses default branch if empty)
ref: ''
token: ${{ secrets.ZEPHYRHAL }}
ssh-key: ${{ secrets.MSDK_SSH_KEY }}
# Repository name (Default will be the current repo the action is running from)
repository: ${{ github.repository }}
fetch-depth: 0
Expand All @@ -49,7 +49,7 @@ jobs:
with:
# Specific Branch, tag, or SHA to checkout (uses default branch if empty)
ref: 'develop'
token: ${{ secrets.ZEPHYRHAL }}
ssh-key: ${{ secrets.MSDK_SSH_KEY }}
# Name of different repository ('organization_name/repo_name')
# Update the following line to point to the hal_adi repo once that repo is created.
repository: 'analogdevicesinc/hal_adi'
Expand All @@ -65,12 +65,6 @@ jobs:
# directory that contains the 'msdk' and 'hal_adi' folders.
bash ./msdk/.github/workflows/scripts/zephyr-hal.sh
- name: Set up SSH key
run: |
mkdir -p ~/.ssh
echo "${{ secrets.MSDK_SSH_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
- name: Push changes to hal_adi repository
run: |
echo "$(pwd) - $(ls)"
Expand Down

0 comments on commit 2fd1c08

Please sign in to comment.