From a68ac9e18308b914a47a31cfb6dba98ac2c3375b Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 17 Mar 2026 14:21:05 -0400 Subject: [PATCH] fix(buildspec): wrap curl with Authorization header in block scalar CodeBuild YAML parser chokes on 'Authorization: token ...' inside a double-quoted string on a list item line. Block scalar avoids parsing. --- codebuild/buildspec.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codebuild/buildspec.yml b/codebuild/buildspec.yml index 0891963..9e12f78 100644 --- a/codebuild/buildspec.yml +++ b/codebuild/buildspec.yml @@ -31,7 +31,8 @@ phases: - unzip -q /tmp/tf.zip -d /usr/local/bin && rm /tmp/tf.zip - terraform version - echo "Downloading tf script from gist..." - - curl -sLo /usr/local/bin/tf -H "Authorization: token $GITHUB_TOKEN" "$TF_GIST_URL" + - | + curl -sLo /usr/local/bin/tf -H "Authorization: token $GITHUB_TOKEN" "$TF_GIST_URL" - chmod +x /usr/local/bin/tf - tf --version - pip3 install --quiet requests