Files
Pygentic-AI/.github/workflows
fsecada01andClaude Sonnet 5.5 ebe47f0be4 ci: read private shared-packages with a GitHub App token
The image build resolves a git dependency on the private
fsecada01/shared-packages repo. Mint a short-lived, read-only GitHub App
installation token in the workflow (create-github-app-token v2.2.2, pinned
to a commit SHA) and pass it to the build as a BuildKit secret. The
Dockerfile mounts it for the python_build.sh RUN step only and points git
at it with GIT_CONFIG_* variables, so it never lands in an ARG, ENV or
image layer. The secret is optional, so builds without it still work.

Also install git in the final stage and stop persisting checkout
credentials. Fork PRs get no secrets, so the image build is only expected
to run for same-repo branches.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017F3tydTA6i18mpWhvLQv9d
2026-11-15 22:50:47 -05:00
..