Skip to content

Commit

Permalink
Use ssh-agent with secret key to access saturn
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryz123 committed Jul 24, 2024
1 parent 1885834 commit 835b160
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/actions/prepare-rtl/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ runs:
sims/firesim/sim
generators/gemmini/software/gemmini-rocc-tests
key: ${{ inputs.group-key }}-${{ github.sha }}

- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SATURN_SECRET }}
- name: Run RTL build if not cached
run: |
conda activate ${{ env.conda-env-name-no-time }}-$(date --date "${{ env.workflow-timestamp }}" +%Y%m%d)-${{ inputs.toolchain }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/chipyard-full-flow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ jobs:
- name: Setup repo copy
run: |
git clone $GITHUB_WORKSPACE ${{ env.REMOTE_WORK_DIR }}
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SATURN_SECRET }}
- name: Setup repo
run: |
cd ${{ env.REMOTE_WORK_DIR }}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/chipyard-run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,13 @@ jobs:
- name: Create conda env
uses: ./.github/actions/create-conda-env
- name: Check commits of each submodule
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SATURN_SECRET }}
run: |
conda activate ${{ env.conda-env-name-no-time }}-$(date --date "${{ env.workflow-timestamp }}" +%Y%m%d)-riscv-tools
eval 'ssh-agent -s'
ssh-add - <<< "${{ secrets.SATURN_SECRET }}"
.github/scripts/check-commit.sh
documentation-check:
Expand Down

0 comments on commit 835b160

Please sign in to comment.