dokploy/packages/server
Cyril BIENNE 30e8d9b86e fix(preview-deployment): refetch github provider before authenticating
`findApplicationById` redacts `githubPrivateKey` from the `github`
relation, but `createPreviewDeployment` passed that redacted object
straight to `authGithub`. Since `haveGithubRequirements` requires the
private key, it always returned false and `authGithub` threw
`TRPCError NOT_FOUND: "Github Account not configured correctly"`.

That throw is uncaught in `pages/api/deploy/github.ts`, so every
`pull_request` webhook returned a bare 500 and no preview deployment
was ever created.

Resolve the provider through `findGithubById(application.githubId)`
instead, matching how every other call site obtains credentials. This
keeps the redaction introduced for `findApplicationById` intact.

Fixes #4898

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-29 13:51:12 +02:00
..
scripts fix(server): update build paths 2024-10-26 15:48:30 -06:00
src fix(preview-deployment): refetch github provider before authenticating 2026-07-29 13:51:12 +02:00
auth-schema2.ts feat(scim): implement SCIM 2.0 user provisioning support 2026-07-08 14:06:22 -06:00
auth-schema.ts Refactor user schema and update database references: rename 'users_temp' to 'user' across the codebase, update related database queries, and enhance endpoint specifications for swarm settings in various database schemas. 2025-11-08 13:54:32 -06:00
esbuild.config.ts Refactor and update various components in the Dokploy application, enhancing functionality and fixing minor issues across multiple pages and features, including dashboard, settings, and API integrations. 2025-08-16 20:18:08 -06:00
package.json feat(scim): implement SCIM 2.0 user provisioning support 2026-07-08 14:06:22 -06:00
tsconfig.json chore(dependencies): update ai-sdk packages and other dependencies 2026-02-16 12:50:34 -06:00
tsconfig.server.json Reapply "Merge branch 'canary' into kucherenko/canary" 2025-03-02 00:30:02 -06:00
tsconfig.server.no-decl.json [autofix.ci] apply automated fixes 2026-02-16 18:51:10 +00:00