0
Fork 0
mirror of https://github.com/oblien/openship.git synced 2026-11-18 06:55:56 +00:00
openship/apps/api/test/modules/github/clone-auth-precedence.test.ts
Daniel Greer 1e9dfafbef fix(github): cover same-owner private submodules in App clone tokens
Refs #979.

When a repository has private submodules under the same owner, the App
installation token minted for the clone only covered the parent repository, so
`git submodule update` failed. The token is now re-minted to include same-owner
submodule repositories listed in .gitmodules at the deployed ref (capped at 25,
each passing the same access check as the parent). Reading .gitmodules failing
falls back to the parent-only token with a warning.

Clone URLs and GitHub tokens are redacted from clone output, error messages and
persisted deployment errors, and each resolution logs which credential source
was used (never the token itself).
2026-10-21 10:51:38 -05:00

269 lines
12 KiB