Pushing from Jenkins to GHES as GitHub App

Hi all!

I connected Jenkins with our company’s GitHub Enterprise Server via GitHub App using github-branch-source-plugin. Everything is working as expected so far.


After building some contents for GitHub pages I’d like to deploy them to gh-pages branch of some repository. This is also working using simple git push https://<user>:<access-token>@github.example.com/<user>/<repo>.

As prerequisite I have to define username and email for git. Usually, I’d place my user credentials here, but I - of course - don’t have them, because I’m connected via GitHub App.

As a workaround I’m setting some random data like following before pushing:

git config --global user.email "jenkins@example.com"
git config --global user.name "Jenkins"

As result I only see “Jenkins” as committer in history:


Question is: is there a way to set GitHub App as committer? So it will use name, profile picture and maybe link to GitHub App instead?