diff --git a/.github/actions/prepare_environment/action.yml b/.github/actions/prepare_environment/action.yml index 817f60f3..efa024c1 100644 --- a/.github/actions/prepare_environment/action.yml +++ b/.github/actions/prepare_environment/action.yml @@ -15,6 +15,8 @@ inputs: description: If true, dependencies needed for building release artifacts will be installed (e.g., cargo-about for license generation). cache_key: description: If set, the cache key to use. If unset, the cache key will be derived from the target OS. + ssh_key: + description: SSH private key used to clone the private warp-channel-config repository. Only consumed when running in warpdotdev/warp-internal. runs: using: composite @@ -74,6 +76,15 @@ runs: env: BINSTALL_VERSION: 1.14.4 + # Load the SSH key needed to clone the private warp-channel-config repo. Only + # run in warpdotdev/warp-internal; elsewhere (mirrors, fork PRs) this is a no-op + # and install_channel_config falls back gracefully. + - name: Setup SSH keys for warp-channel-config + if: ${{ github.repository == 'warpdotdev/warp-internal' && inputs.ssh_key != '' }} + uses: webfactory/ssh-agent@e83874834305fe9a4a2997156cb26c5de65a8555 # v0.10.0 + with: + ssh-private-key: ${{ inputs.ssh_key }} + - name: Install dependencies shell: bash run: | diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index ab639931..625e2e2d 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -158,6 +158,7 @@ jobs: is_self_hosted: false ref: ${{ needs.prepare_release.outputs.release_branch }} install_release_deps: true + ssh_key: ${{ secrets.WARP_CHANNEL_CONFIG_ACCESS_SSH_KEY }} - name: Ensure rust target is installed run: rustup target add ${{ matrix.arch }}-apple-darwin @@ -277,6 +278,7 @@ jobs: is_self_hosted: false ref: ${{ needs.prepare_release.outputs.release_branch }} install_release_deps: true + ssh_key: ${{ secrets.WARP_CHANNEL_CONFIG_ACCESS_SSH_KEY }} # Install go toolchain, as it may be needed for some build steps. - name: Setup Go @@ -423,6 +425,7 @@ jobs: is_self_hosted: false ref: ${{ needs.prepare_release.outputs.release_branch }} install_release_deps: true + ssh_key: ${{ secrets.WARP_CHANNEL_CONFIG_ACCESS_SSH_KEY }} - name: Ensure rust target is installed run: rustup target add ${{ matrix.arch }}-apple-darwin @@ -525,6 +528,7 @@ jobs: is_self_hosted: false ref: ${{ needs.prepare_release.outputs.release_branch }} install_release_deps: true + ssh_key: ${{ secrets.WARP_CHANNEL_CONFIG_ACCESS_SSH_KEY }} # Install gcc 10, as gcc 9.5 has a bug with memcmp that is incompatible # with aws-lc-rs (see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95189). @@ -674,6 +678,7 @@ jobs: is_self_hosted: false ref: ${{ needs.prepare_release.outputs.release_branch }} install_release_deps: true + ssh_key: ${{ secrets.WARP_CHANNEL_CONFIG_ACCESS_SSH_KEY }} # Install gcc 10, as gcc 9.5 has a bug with memcmp that is incompatible # with aws-lc-rs (see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95189). @@ -849,6 +854,7 @@ jobs: is_self_hosted: false ref: ${{ needs.prepare_release.outputs.release_branch }} install_release_deps: true + ssh_key: ${{ secrets.WARP_CHANNEL_CONFIG_ACCESS_SSH_KEY }} # Install gcc 10, as gcc 9.5 has a bug with memcmp that is incompatible # with aws-lc-rs (see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95189). @@ -937,6 +943,7 @@ jobs: is_self_hosted: false ref: ${{ needs.prepare_release.outputs.release_branch }} install_release_deps: true + ssh_key: ${{ secrets.WARP_CHANNEL_CONFIG_ACCESS_SSH_KEY }} # Install gcc 10, as gcc 9.5 has a bug with memcmp that is incompatible # with aws-lc-rs (see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95189). @@ -1269,6 +1276,7 @@ jobs: target_os: wasm is_self_hosted: false ref: ${{ needs.prepare_release.outputs.release_branch }} + ssh_key: ${{ secrets.WARP_CHANNEL_CONFIG_ACCESS_SSH_KEY }} - name: Get channel configuration id: get-config @@ -1395,6 +1403,7 @@ jobs: is_self_hosted: false ref: ${{ needs.prepare_release.outputs.release_branch }} install_release_deps: true + ssh_key: ${{ secrets.WARP_CHANNEL_CONFIG_ACCESS_SSH_KEY }} - name: Add arm64 target if: ${{ matrix.arch == 'arm64' }}