Skip to content

Commit

Permalink
fix(buildspec): wrap curl with Authorization header in block scalar
Browse files Browse the repository at this point in the history
CodeBuild YAML parser chokes on 'Authorization: token ...' inside a
double-quoted string on a list item line. Block scalar avoids parsing.
  • Loading branch information
Your Name committed Mar 17, 2026
1 parent cd9c510 commit a68ac9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion codebuild/buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a68ac9e

Please sign in to comment.