From c4227caf228889f5207f44b83a09a99be83a32a6 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 6 Apr 2026 14:26:22 -0400 Subject: [PATCH] fix: add REPO_BRANCH and use it in git clone - Add REPO_BRANCH env var (currently fix/eca-copilot-instructions-and-callnotes) pointing to the branch with dynamic path fixes and HTTPS module source - Pass --branch to git clone so CodeBuild checks out the right code - Update REPO_BRANCH to 'main' once the fix branch is merged --- buildspec.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/buildspec.yml b/buildspec.yml index abea3b8..9841020 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -22,6 +22,7 @@ env: REPO_HOST: "github.e.it.census.gov" REPO_ORG: "SCT-Engineering" REPO_NAME: "terraform-eks-deployment" + REPO_BRANCH: "fix/eca-copilot-instructions-and-callnotes" # update to main once merged # Disable TLS verification for Census GHE (Census CA cert not trusted by default) GIT_SSL_NO_VERIFY: "true" TF_CLI_ARGS: "-no-color" @@ -46,7 +47,7 @@ phases: - | git config --global credential.helper \ "!f() { echo username=x-access-token; echo password=${GITHUB_TOKEN}; }; f" - git clone --depth 1 \ + git clone --depth 1 --branch "${REPO_BRANCH}" \ "https://${REPO_HOST}/${REPO_ORG}/${REPO_NAME}.git" \ /tmp/eks-deploy - echo "Cloned ${REPO_ORG}/${REPO_NAME} @ $(git -C /tmp/eks-deploy rev-parse --short HEAD)"