From 9557195f1a781959ebb30b3e99e373b8754b3413 Mon Sep 17 00:00:00 2001 From: Mariagabriela Giorgianni Date: Tue, 3 Feb 2026 03:15:00 -0400 Subject: [PATCH 1/3] feat: add bitbucket to known hosts --- .github/workflows/build.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6532e6e..b1e8928 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -212,6 +212,13 @@ jobs: mkdir -p ~/.ssh ssh-keyscan github.com >> ~/.ssh/known_hosts + - name: Add Bitbucket to known_hosts + if: env.SSH_PRIVATE_KEY + run: | + mkdir -p ~/.ssh + ssh-keyscan bitbucket.org >> ~/.ssh/known_hosts + chmod 600 ~/.ssh/known_hosts + - name: Execute extra commands run: | tutor picasso run-extra-commands From 21b5c14e20f3feef66a805b18b5827a3c68d4058 Mon Sep 17 00:00:00 2001 From: Mariagabriela Giorgianni Date: Tue, 3 Feb 2026 03:22:04 -0400 Subject: [PATCH 2/3] fix: add bitbucket to known hosts step --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b1e8928..71c7635 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -212,12 +212,12 @@ jobs: mkdir -p ~/.ssh ssh-keyscan github.com >> ~/.ssh/known_hosts - - name: Add Bitbucket to known_hosts + - name: Add Bitbucket to known hosts + env: + SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} if: env.SSH_PRIVATE_KEY run: | - mkdir -p ~/.ssh ssh-keyscan bitbucket.org >> ~/.ssh/known_hosts - chmod 600 ~/.ssh/known_hosts - name: Execute extra commands run: | From a6ace736fe9aca6861af1b9f9447a4c1d18f84e8 Mon Sep 17 00:00:00 2001 From: Mariagabriela Giorgianni Date: Mon, 27 Apr 2026 22:00:12 -0400 Subject: [PATCH 3/3] fix: add bitbucket to known hosts --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 71c7635..1aa1ff3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -214,8 +214,8 @@ jobs: - name: Add Bitbucket to known hosts env: - SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} - if: env.SSH_PRIVATE_KEY + HAS_SSH_KEYS: ${{ secrets.SSH_PRIVATE_KEY != '' || secrets.SSH_PRIVATE_KEYS != '' }} + if: env.HAS_SSH_KEYS == 'true' run: | ssh-keyscan bitbucket.org >> ~/.ssh/known_hosts