Skip to main content
Question

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

  • October 30, 2025
  • 0 replies
  • 10 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

0 replies

Be the first to reply!