Skip to content

Commit fa8a18d

Browse files
committed
added use_ssh_for_private_deps
1 parent ba5ff01 commit fa8a18d

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/extra_soundness.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ on:
1515
type: string
1616
description: "List of Swift versions to test with."
1717
default: '["6.0", "6.1"]'
18+
use_ssh_for_private_deps:
19+
type: boolean
20+
description: "Set up ssh-agent with SSH_PRIVATE_KEY to fetch private SwiftPM deps over SSH."
21+
default: false
1822

1923
concurrency:
2024
group: ${{ github.workflow }}-${{ github.ref }}-extra-soundness
@@ -46,6 +50,18 @@ jobs:
4650
steps:
4751
- name: Checkout
4852
uses: actions/checkout@v4
53+
54+
- name: Set up SSH for private SwiftPM deps
55+
if: ${{ inputs.use_ssh_for_private_deps }}
56+
uses: webfactory/ssh-agent@v0.9.0
57+
with:
58+
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
59+
60+
- name: Trust github.com host key
61+
if: ${{ inputs.use_ssh_for_private_deps }}
62+
run: |
63+
mkdir -p ~/.ssh
64+
ssh-keyscan github.com >> ~/.ssh/known_hosts
4965
5066
- name: Install zstd
5167
run: |

0 commit comments

Comments
 (0)