<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Workflow job failing with source  as Git Provider (remote github repo) with SP in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/workflow-job-failing-with-source-as-git-provider-remote-github/m-p/114421#M44817</link>
    <description>&lt;P&gt;Facing issue using Github App when running job with source as "Git provider" using Service Principle. Since we can't use PAT with SP on github, I am using Github app for authentication.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Followed below documentation but still giving permission issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/repos/get-access-tokens-from-git-provider" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/azure/databricks/repos/get-access-tokens-from-git-provider&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Why use the Databricks GitHub App instead of a PAT? from above link.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Apr 2025 15:33:59 GMT</pubDate>
    <dc:creator>srinum89</dc:creator>
    <dc:date>2025-04-03T15:33:59Z</dc:date>
    <item>
      <title>Workflow job failing with source  as Git Provider (remote github repo) with SP</title>
      <link>https://community.databricks.com/t5/data-engineering/workflow-job-failing-with-source-as-git-provider-remote-github/m-p/114421#M44817</link>
      <description>&lt;P&gt;Facing issue using Github App when running job with source as "Git provider" using Service Principle. Since we can't use PAT with SP on github, I am using Github app for authentication.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Followed below documentation but still giving permission issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/repos/get-access-tokens-from-git-provider" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/azure/databricks/repos/get-access-tokens-from-git-provider&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Why use the Databricks GitHub App instead of a PAT? from above link.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2025 15:33:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/workflow-job-failing-with-source-as-git-provider-remote-github/m-p/114421#M44817</guid>
      <dc:creator>srinum89</dc:creator>
      <dc:date>2025-04-03T15:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow job failing with source  as Git Provider (remote github repo) with SP</title>
      <link>https://community.databricks.com/t5/data-engineering/workflow-job-failing-with-source-as-git-provider-remote-github/m-p/114429#M44821</link>
      <description>&lt;P&gt;When running a Databricks workflow with a Git provider source using a Service Principal, you’re encountering permission issues despite using the GitHub App for authentication. This is a common challenge because Service Principals cannot use Personal Access Tokens (PATs) with GitHub.&lt;/P&gt;
&lt;P&gt;The core problem is that while the Databricks GitHub App provides several advantages over PATs (OAuth 2.0 authentication, automatic token renewal, and more granular access control), there’s a specific configuration needed for Service Principals to access Git repositories.&lt;BR /&gt;Service Principals cannot create tokens like PATs or SSH Keys in GitHub, which creates an authentication challenge when they need to access Git repositories for workflows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;Solutions&lt;/DIV&gt;
&lt;DIV&gt;1. Configure Git Credentials for the Service Principal&lt;/DIV&gt;
&lt;DIV&gt;You need to explicitly set up Git credentials for your Service Principal using the Git Credential API:&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;- Use the Databricks REST API to add Git credentials for your Service Principal&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;- Specify the correct parameters:&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;For GitHub, use the appropriate git_provider value&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Include the personal_access_token (this would be a token created by a user with appropriate access)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Set git_username to the Service Principal’s display name&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Apr 2025 16:56:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/workflow-job-failing-with-source-as-git-provider-remote-github/m-p/114429#M44821</guid>
      <dc:creator>Louis_Frolio</dc:creator>
      <dc:date>2025-04-03T16:56:11Z</dc:date>
    </item>
  </channel>
</rss>

