alexku / blt-github-actions

Github Actions integration for Acquia BLT.
GNU General Public License v2.0
10 stars 9 forks source link

Allow /Trust all Acquia git/svn hosts. #1

Open naveenvalecha opened 3 years ago

naveenvalecha commented 3 years ago

As of now, it is only trusting the Acquia cloud enterprise subscriptions not Acquia cloud professionals

endre-soo-TPX commented 1 year ago

Hey @alexku ,

I pathed the setup_env.sh script as

diff --git a/scripts/github-actions/setup_env.sh b/scripts/github-actions/setup_env.sh
index b215557..bb33795 100644
--- a/scripts/github-actions/setup_env.sh
+++ b/scripts/github-actions/setup_env.sh
@@ -9,7 +9,7 @@ mkdir -p ~/.ssh
 touch ~/.ssh/config
 chmod 600 ~/.ssh/config
 # Trust all Acquia git/svn hosts.
-printf "Host *.enterprise-g1.hosting.acquia.com\n  StrictHostKeyChecking no\n" >> ~/.ssh/config
+printf "Host *.hosting.acquia.com\n  StrictHostKeyChecking no\n" >> ~/.ssh/config
 # Github actions will run steps as root.
 # Related to https://github.community/t/how-to-run-action-as-a-non-root-user/17572
 mkdir -p /root/.ssh

and it seems to be working properly.

If you give me access I can raise a PR with the change.

naveenvalecha commented 1 year ago

@endre-soo-TPX There's already a PR opened for it https://github.com/alexku/blt-github-actions/pull/2