Use when writing, editing, or reviewing CircleCI configuration for the Astronomer APC repository. Covers script organization, inline vs external scripts, and config conventions.
.circleci/config.yml if the script has complicated flow control. Complicated scripts belong in bin/.bin/ — every script called from CircleCI must exist as a file in the bin/ directory with an appropriate extension (e.g. bin/my-script.sh, bin/my-script.py).latest or unpinned tags for Docker images or installed tools. Always specify an exact version to prevent supply chain vulnerabilities and ensure reproducible builds.Scripts invoked by CircleCI jobs must be committed to the repository under bin/ so they can be:
# ✅ CORRECT — call a script from bin/