Skip to content

Commit 74b55ef

Browse files
committed
fix(consumers): forward INTEGRATION_* App secrets to build_docker_image_multiplatform
The reusable supports `client_id` + `app_private_key` and uses them to mint an installation token + write /tmp/.netrc so `uv sync` can fetch private git deps. The canonical caller never passed them, so every consumer with private deps (e.g. whengas/nats-platform-meta pulling pyapi-service-kit @ git+https://...) failed at build time with `awk: cannot open "/app/.netrc"` and exit 2. Both secrets are required: false in the reusable, so consumers without private deps and without org-level INTEGRATION_* configured keep working — the values resolve to '' and the netrc step is skipped.
1 parent 59ae53f commit 74b55ef

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

consumers/workflows/build-docker-image.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,11 @@ jobs:
5656
secrets:
5757
registry_username: ${{ github.actor }}
5858
registry_token: ${{ secrets.GITHUB_TOKEN }}
59+
# GitHub App auth for cloning private git deps at build time
60+
# (e.g. uv sync over `pkg @ git+https://github.com/<org>/<repo>`).
61+
# The reusable mints an installation token and writes /tmp/.netrc
62+
# only when both are non-empty; repos with no private deps can
63+
# leave the org-level INTEGRATION_* unset and these resolve to ''
64+
# without breaking the build.
65+
client_id: ${{ vars.INTEGRATION_CLIENT_ID }}
66+
app_private_key: ${{ secrets.INTEGRATION_APP_PRIVATE_KEY }}

0 commit comments

Comments
 (0)