Sonarqube PR Decoration with Github App

We wanted to set up the Sonarqube PR Decoration by creating a Github App with callback and webhook urls. We can set it up manually with Github GUI page (Developer Settings). But we want to automate it with any Infrastructure as Code, may be Python CDK or Terraform from the scratch, that means from creating Github App, installing and other setting. I searched a lot but didn’t see any nice workaround anywhere, not even a CLI commands to create a Github app. If anyone has any idea or any workarounds or sample scripts, that would be helpful. Thanks in advance.