Skip to main content
Answer

leanix-github-agent for github.com unable to getApp

  • October 30, 2025
  • 1 reply
  • 36 views

Hi,

I am Pawan Modi from Levi. We are using github.com as our code repository. 

I have setup GitHub enterprise integration in LeanIX from self-built software discovery.

Also created GitHub app in github.com.

I am able to connect agent (Kotlin agent) to LeanIX and websocket session started succesfully.

But getting error in Generating GWT token with error “Failed to generate a valid jwt token”. 

I have created GitHub app as per the instruction provided here https://help.sap.com/docs/leanix/ea/setting-up-github-enterprise-integration?locale=en-US

I have downloaded my github app private key and the app id. 

I have provided all the details in Docker Compose file with the path of downloaded github app private key (.pem) and the app id and all following env variable.

 

services:
  github-agent:
    image: ghcr.io/leanix/leanix-github-agent:v1.0.0
    platform: linux/amd64
    ports:
      - "8080:8080"
    environment:
      - GITHUB_ENTERPRISE_BASE_URL=https://github.com
      - GITHUB_APP_ID=<My GitHub app id> 
      - PEM_FILE=/privateKey.pem
      - LEANIX_DOMAIN=us.leanix.net
      - LEANIX_TECHNICAL_USER_TOKEN=<LeanIX admin token>
    volumes:
      - <Absolute path to the private key (.pem)>

 

But i am getting following error - 

2025-10-29T16:34:39.110Z ERROR 1 --- [         task-1] n.l.g.s.GitHubAuthenticationService      : Failed to verify and cache JWT token

 

Can we use this github integration for github.com or only supported for self-hosted github enterprise server?

 

regards,

Pawan Modi

Best answer by CSE

Hello Pawan,

Hope you’re doing well!

Thank you for your interest in our GitHub integration to discover and manage self-built software in your IT landscape. However, as mentioned in our documentation, the integration is currently only available for GitHub Enterprise Server (self-hosted deployment) and is not supported for GitHub Enterprise Cloud. Nevertheless, you can still discover your self-built software from GitHub SaaS by integrating with your CI/CD pipeline. If you’d like, I’d be happy to schedule a session to guide you through this approach. 

 

 

Have a nice evening! 

 

-- On behalf of Customer Success Engineering (Self-built Software Discovery)

1 reply

Forum|alt.badge.img
  • LeanIX Team
  • Answer
  • November 17, 2025

Hello Pawan,

Hope you’re doing well!

Thank you for your interest in our GitHub integration to discover and manage self-built software in your IT landscape. However, as mentioned in our documentation, the integration is currently only available for GitHub Enterprise Server (self-hosted deployment) and is not supported for GitHub Enterprise Cloud. Nevertheless, you can still discover your self-built software from GitHub SaaS by integrating with your CI/CD pipeline. If you’d like, I’d be happy to schedule a session to guide you through this approach. 

 

 

Have a nice evening! 

 

-- On behalf of Customer Success Engineering (Self-built Software Discovery)