About authentication with a GitHub App - GitHub Docs
Your GitHub App can authenticate as itself, as an app installation, or on behalf of a user.