From 30c92c15d6abdc7f4a81727dd1c4c4b4317bec41 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sat, 22 Aug 2026 04:05:57 +0000 Subject: [PATCH] ci: rewrite git SSH to HTTPS in e2e and commitlint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Dependabot lockfiles resolve @electron/node-gyp as git@github.com:. The setup job already rewrites that to HTTPS; e2e and commitlint did not, so those checks died in ~20s with Permission denied (publickey). Closes #544 Co-authored-by: Tomás Maritano --- .github/workflows/ci.yml | 8 ++++++++ .github/workflows/pr-title.yml | 5 +++++ 2 files changed, 13 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c43fae55..b0c88dfa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -164,6 +164,14 @@ jobs: node-version: ${{ env.NODE_VERSION }} cache: 'pnpm' + # Same rewrite as the setup job. Dependabot-regenerated lockfiles + # resolve @electron/node-gyp as git@github.com: (SSH). Runners have + # no deploy key, so install dies in ~20s with "Permission denied + # (publickey)" — that is why Dependabot PRs fail e2e while develop + # (HTTPS tarball in the lockfile) stays green. See #544. + - name: Force HTTPS for GitHub git dependencies + run: git config --global 'url.https://github.com/.insteadOf' 'git@github.com:' + - name: Install dependencies (with postinstall scripts) run: pnpm install --frozen-lockfile diff --git a/.github/workflows/pr-title.yml b/.github/workflows/pr-title.yml index 4a7fa4bf..bde45aa4 100644 --- a/.github/workflows/pr-title.yml +++ b/.github/workflows/pr-title.yml @@ -39,6 +39,11 @@ jobs: node-version: '22' cache: 'pnpm' + # Dependabot lockfiles resolve @electron/node-gyp as git@github.com:. + # Without this rewrite, `pnpm install` dies on SSH (see #544 / e2e). + - name: Force HTTPS for GitHub git dependencies + run: git config --global 'url.https://github.com/.insteadOf' 'git@github.com:' + # Title check only needs commitlint + its config — no workspace # native deps, no postinstall. - name: Install commitlint