Hi Rajesh,
Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.
It sounds like you want to be absolutely sure your pipeline is using the GitHub App rather than OAuth or a PAT. Azure Pipelines won’t stamp “GitHub App” or “Bearer” in every log line, but here are a few ways you can confirm:
- Check the Service Connection itself
- Go to Project settings → Service connections in Azure DevOps.
- Find your GitHub connection and open it – it’ll explicitly say “Authentication type: GitHub App.”
- Look at the “Get sources” step in a pipeline run
- In the pipeline’s run summary, expand the “Get sources” (checkout) step.
- You’ll see the name of the service connection that was used. If that connection is your GitHub App connection, the pipeline is using the App under the covers.
- Inspect resources via REST API You can call the Builds – Get Resources API to see which service connections were used by a particular build:
The response lists the serviceConnection resource and its ID – match that back to your GitHub App connection in the UI.GET https://dev.azure.com/{org}/{project}/_apis/build/builds/{buildId}/resources?api-version=7.1 - Turn on debug logging for git checkout (optional) In your YAML, set
variables: system.debug: trueand addpersistCredentials: trueunder the checkout step. The verbose logs will show the auth header being fetched from the service connection (though it won’t say “GitHub App,” you’ll see it coming from the connection you configured).
If you still aren’t seeing what you expect, here are a couple of follow-up questions:
- Is your pipeline a classic build or YAML-based?
- Can you share a screenshot (or the exact name) of the service connection you selected under “Get sources”?
- Are you using Microsoft-hosted agents or self-hosted agents?
- Have you enabled
system.debugand reviewed the checkout logs already?
Hope this helps you verify your GitHub App integration!
References
- Build GitHub repositories: Authentication types (GitHub App vs OAuth vs PAT)
- Switch a classic pipeline to use the GitHub App connection
- REST API for build resources
Note: This content was drafted with the help of an AI system.