Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

add log

Thiago Araujo da Silva59ef6c590372
diff --git a/backend/src/services/github-app/github-app-service.ts b/backend/src/services/github-app/github-app-service.ts
index d46e11cf0d..74386c6da1 100644
--- a/backend/src/services/github-app/github-app-service.ts
+++ b/backend/src/services/github-app/github-app-service.ts
@@ -514,7 +514,13 @@ export const gitHubAppServiceFactory = ({
}
);
manifestResponse = data;
- } catch {
+ } catch (err) {
+ logger.error(
+ { ...sanitizeGitHubAxiosError(err), orgId, projectId, instanceType, host: githubHost || "github.com" },
+ `Failed to exchange GitHub App manifest code [orgId=${orgId}] [projectId=${
+ projectId ?? "null"
+ }] [instanceType=${instanceType}] [host=${githubHost || "github.com"}]`
+ );
throw new BadRequestError({
message:
"Failed to exchange GitHub App manifest code. The code may be expired or invalid. Please try registering the GitHub App again."