From 0a197ed321e1e56047e1c2e206b53bb748ffa3ce Mon Sep 17 00:00:00 2001 From: Dustin LeBlanc Date: Wed, 14 Feb 2024 11:51:15 -0500 Subject: [PATCH] Document git repository authentication environment variables This gives the details what variables are needed for Bitbucket and a bit of a vague suggestion of what is needed for Github. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 6e5f38b..4211288 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,7 @@ Those can be copied in one command using the [Terminus Build Tools Plugin](https * Under Environment Variables in your CircleCI settings add a variable for `TERMINUS_SITE` set to the machine name of your Pantheon site. If you don't know the machine name of your site, look at the URL of the Dev or Test environment of the site. For example in the URL for a Dev environment, `https://dev-pantheon-weekly-demo-site.pantheonsite.io/`, the machine name is `pantheon-weekly-demo-site`. * [Create a Terminus machine token using the Pantheon Dashboard](https://pantheon.io/docs/machine-tokens/). Add it as another environment variable in CircleCI named `TERMINUS_TOKEN`. * Retrigger a build in CircleCI either by pushing a whitespace (or otherwise inocuous) change to your code on GitHub. This time, the build should pass. + * Setup git repository authentication environment variables in CircleCI. For Bitbucket, the required variables are `BITBUCKET_USER`(your Bitbucket username [not email]) and `BITBUCKET_PASS` (An _app password_ rather than your standard password used to login). These variables need to be added to the project environment variables in CircleCI). For Github, this should be the `GITHUB_TOKEN` environment variable. 4. (Optional) Under "Advanced Settings" in your CircleCI repository settings turn on "Only build pull requests." While not necessary, this setting prevents separate Pantheon Multidev environment from being created for each commit. With this setting on, all created Multidevs will be named by pull request number and subsequent pushes to an open pull request will reuse the same Multidev environment. ### Examples