Skip to content

Commit

Permalink
fix(codebuild): wrap TF_WORKSPACE default in block scalar (colon in :…
Browse files Browse the repository at this point in the history
…- trips YAML parser)
  • Loading branch information
Your Name committed Mar 17, 2026
1 parent 5a644eb commit b20576c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion codebuild/buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ phases:
pre_build:
on-failure: ABORT
commands:
- TF_WORKSPACE="${TF_WORKSPACE:-default}"
- |
TF_WORKSPACE="${TF_WORKSPACE:-default}"
export TF_WORKSPACE
- echo "TF_WORKSPACE=${TF_WORKSPACE}"
- test -n "$TF_WORKSPACE" || { echo "ERROR: TF_WORKSPACE is empty"; exit 1; }
- export TF_VAR_github_token="$GITHUB_TOKEN"
Expand Down

0 comments on commit b20576c

Please sign in to comment.