Skip to content

Commit 57225a8

Browse files
authored
Supply SSH key for channel config repo access (#9298)
1 parent bc3fffa commit 57225a8

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

.github/actions/prepare_environment/action.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ inputs:
1515
description: If true, dependencies needed for building release artifacts will be installed (e.g., cargo-about for license generation).
1616
cache_key:
1717
description: If set, the cache key to use. If unset, the cache key will be derived from the target OS.
18+
ssh_key:
19+
description: SSH private key used to clone the private warp-channel-config repository. Only consumed when running in warpdotdev/warp-internal.
1820

1921
runs:
2022
using: composite
@@ -74,6 +76,15 @@ runs:
7476
env:
7577
BINSTALL_VERSION: 1.14.4
7678

79+
# Load the SSH key needed to clone the private warp-channel-config repo. Only
80+
# run in warpdotdev/warp-internal; elsewhere (mirrors, fork PRs) this is a no-op
81+
# and install_channel_config falls back gracefully.
82+
- name: Setup SSH keys for warp-channel-config
83+
if: ${{ github.repository == 'warpdotdev/warp-internal' && inputs.ssh_key != '' }}
84+
uses: webfactory/ssh-agent@e83874834305fe9a4a2997156cb26c5de65a8555 # v0.10.0
85+
with:
86+
ssh-private-key: ${{ inputs.ssh_key }}
87+
7788
- name: Install dependencies
7889
shell: bash
7990
run: |

.github/workflows/create_release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ jobs:
158158
is_self_hosted: false
159159
ref: ${{ needs.prepare_release.outputs.release_branch }}
160160
install_release_deps: true
161+
ssh_key: ${{ secrets.WARP_CHANNEL_CONFIG_ACCESS_SSH_KEY }}
161162

162163
- name: Ensure rust target is installed
163164
run: rustup target add ${{ matrix.arch }}-apple-darwin
@@ -277,6 +278,7 @@ jobs:
277278
is_self_hosted: false
278279
ref: ${{ needs.prepare_release.outputs.release_branch }}
279280
install_release_deps: true
281+
ssh_key: ${{ secrets.WARP_CHANNEL_CONFIG_ACCESS_SSH_KEY }}
280282

281283
# Install go toolchain, as it may be needed for some build steps.
282284
- name: Setup Go
@@ -423,6 +425,7 @@ jobs:
423425
is_self_hosted: false
424426
ref: ${{ needs.prepare_release.outputs.release_branch }}
425427
install_release_deps: true
428+
ssh_key: ${{ secrets.WARP_CHANNEL_CONFIG_ACCESS_SSH_KEY }}
426429

427430
- name: Ensure rust target is installed
428431
run: rustup target add ${{ matrix.arch }}-apple-darwin
@@ -525,6 +528,7 @@ jobs:
525528
is_self_hosted: false
526529
ref: ${{ needs.prepare_release.outputs.release_branch }}
527530
install_release_deps: true
531+
ssh_key: ${{ secrets.WARP_CHANNEL_CONFIG_ACCESS_SSH_KEY }}
528532

529533
# Install gcc 10, as gcc 9.5 has a bug with memcmp that is incompatible
530534
# with aws-lc-rs (see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95189).
@@ -674,6 +678,7 @@ jobs:
674678
is_self_hosted: false
675679
ref: ${{ needs.prepare_release.outputs.release_branch }}
676680
install_release_deps: true
681+
ssh_key: ${{ secrets.WARP_CHANNEL_CONFIG_ACCESS_SSH_KEY }}
677682

678683
# Install gcc 10, as gcc 9.5 has a bug with memcmp that is incompatible
679684
# with aws-lc-rs (see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95189).
@@ -849,6 +854,7 @@ jobs:
849854
is_self_hosted: false
850855
ref: ${{ needs.prepare_release.outputs.release_branch }}
851856
install_release_deps: true
857+
ssh_key: ${{ secrets.WARP_CHANNEL_CONFIG_ACCESS_SSH_KEY }}
852858

853859
# Install gcc 10, as gcc 9.5 has a bug with memcmp that is incompatible
854860
# with aws-lc-rs (see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95189).
@@ -937,6 +943,7 @@ jobs:
937943
is_self_hosted: false
938944
ref: ${{ needs.prepare_release.outputs.release_branch }}
939945
install_release_deps: true
946+
ssh_key: ${{ secrets.WARP_CHANNEL_CONFIG_ACCESS_SSH_KEY }}
940947

941948
# Install gcc 10, as gcc 9.5 has a bug with memcmp that is incompatible
942949
# with aws-lc-rs (see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95189).
@@ -1269,6 +1276,7 @@ jobs:
12691276
target_os: wasm
12701277
is_self_hosted: false
12711278
ref: ${{ needs.prepare_release.outputs.release_branch }}
1279+
ssh_key: ${{ secrets.WARP_CHANNEL_CONFIG_ACCESS_SSH_KEY }}
12721280

12731281
- name: Get channel configuration
12741282
id: get-config
@@ -1395,6 +1403,7 @@ jobs:
13951403
is_self_hosted: false
13961404
ref: ${{ needs.prepare_release.outputs.release_branch }}
13971405
install_release_deps: true
1406+
ssh_key: ${{ secrets.WARP_CHANNEL_CONFIG_ACCESS_SSH_KEY }}
13981407

13991408
- name: Add arm64 target
14001409
if: ${{ matrix.arch == 'arm64' }}

0 commit comments

Comments
 (0)