mirror of
https://github.com/fsecada01/Pygentic-AI.git
synced 2026-11-24 23:28:18 +00:00
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