<?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 Juletip #3 – Create a gitHub authenthication in Viya4 using GitHub PAT and HTTPS to avoid SSH setup in SAS Community Nordic</title>
    <link>https://communities.sas.com/t5/SAS-Community-Nordic/Juletip-3-Create-a-gitHub-authenthication-in-Viya4-using-GitHub/m-p/979918#M508</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Hi and happy Juletip!&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Introduction&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;In Viya4, SAS Studio can interact with GitHub using authentication over SSH or HTTPS. From cadence 2025.11, SAS Studio require a file with “known hosts” in the users HOME folder, in addition to the private and public key. This is a bit cumbersome to create when users cannot SSH/login to the compute host in Viya4.&amp;nbsp;An alternative is to use HTTPS and GitHub PAT (Personal Authentication Token) as logon method for integrating GitHub and SAS Studio, see links:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;GitHub setup of PAT etc.:&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp; &lt;A href="https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.github.com%2Fen%2Fauthentication%2Fkeeping-your-account-and-data-secure%2Fmanaging-your-personal-access-tokens&amp;amp;data=05%7C02%7CTorOve.Kilnes%40sas.com%7Ce1a82960f12c463aa27708de2b52b467%7Cb1c14d5c362545b3a4309552373a0c2f%7C0%7C0%7C638995831382734827%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&amp;amp;sdata=lGePCByUbUPlTf2Hn2OGvwWRBrwQIG%2Bzog%2F4tXQHnzU%3D&amp;amp;reserved=0" target="_blank" rel="noopener"&gt;https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &lt;A href="https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F18935539%2Fauthenticate-with-github-using-a-token&amp;amp;data=05%7C02%7CTorOve.Kilnes%40sas.com%7Ce1a82960f12c463aa27708de2b52b467%7Cb1c14d5c362545b3a4309552373a0c2f%7C0%7C0%7C638995831382751364%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&amp;amp;sdata=%2Bastg0o4Nq4c2Y0Czrqbnqr02K9tkHDUf2ZUXvgjzVE%3D&amp;amp;reserved=0" target="_blank" rel="noopener"&gt;https://stackoverflow.com/questions/18935539/authenticate-with-github-using-a-token&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;SAS Git:&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/doc/en/sasstudiocdc/v_068/webeditorcdc/webeditorug/p0urbfmbb9lkpdn15yzavxdk1lgk.htm" target="_blank" rel="noopener"&gt;https://go.documentation.sas.com/doc/en/sasstudiocdc/v_068/webeditorcdc/webeditorug/p0urbfmbb9lkpdn15yzavxdk1lgk.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Steps to setup at GitHub for PAT:&lt;/STRONG&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Go to github.com and log in using your GitHub ID. Then: Settings -&amp;gt; Developer Settings&amp;nbsp; (in top right corner and at the bottom of the new menu list)&lt;/LI&gt;
&lt;LI&gt;Select "Person Access Token" -&amp;gt; Fine-grained tokens and Generate Key&lt;/LI&gt;
&lt;LI&gt;Give the Token a name, description and an expiration date.&lt;/LI&gt;
&lt;LI&gt;Set Repository Access to all of your owned repositories (or select one or more specific repos).&lt;/LI&gt;
&lt;LI&gt;Permissions. This is the uncertain area. At first, with default settings, it seems on READ for Metadata. And that may not be enough.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;When it worked, I used:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- READ to everything&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- READ and WRITE to: Access to code, codespaces secrets, merge queues, pull requests, and workflows&lt;/P&gt;
&lt;P&gt;Unclear what the &lt;STRONG&gt;minimum permissions&lt;/STRONG&gt; need to be.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Steps to setup in SAS Studio:&lt;/STRONG&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Create a folder in the "SAS Server" for holding the files that will be under Git control. You can choose any folder you like.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;Here the example path is: /srv/nortok/Git_Repos&lt;/P&gt;
&lt;OL start="2"&gt;
&lt;LI&gt;Right mouse-button on the folder and "initialize" it for Git usage. Then the icon for the folder changes to the Git icon.&lt;/LI&gt;
&lt;LI&gt;Go to Options -&amp;gt; Manage Git Connections and make a profile.&lt;/LI&gt;
&lt;LI&gt;a) Create a &lt;STRONG&gt;HTTPS profile&lt;/STRONG&gt; with values adapted to your name:&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Profile name:&lt;/STRONG&gt; TorOve_gitHub_HTTPS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Commit author Name:&lt;/STRONG&gt; &amp;lt;Your Name&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Comit author email:&lt;/STRONG&gt; &amp;lt;Your Email&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Domain ID:&lt;/STRONG&gt; GitAuth&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The domain ID can be anything, but it is good to have a domain name representing the content in the&amp;nbsp;domain.&amp;nbsp;This domain will hold you GitHub logon ID and the PAT token.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PiaRnnevik_0-1764749652133.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/111751iC3079F2139F16515/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PiaRnnevik_0-1764749652133.png" alt="PiaRnnevik_0-1764749652133.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;OL start="4"&gt;
&lt;LI&gt;b) Create a repository with the following settings:&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;STRONG&gt;Remote Repository:&lt;/STRONG&gt; &lt;A href="https://github.com/&amp;lt;your-selected-repository&amp;gt;.git" target="_blank" rel="noopener"&gt;https://github.com/&amp;lt;your-selected-repository&amp;gt;.git&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;EM&gt;(You can find this link in GitHub: go to the repository → Code → Clone → HTTPS)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;STRONG&gt;SAS Server Location:&lt;/STRONG&gt; /srv/nortok/Git_Repos&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;EM&gt;(Note: This path cannot be changed later and must remain as specified above)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;STRONG&gt;Profile:&lt;/STRONG&gt; TorOve_gitHub_HTTPS&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;EM&gt;(This is the HTTPS access profile created in the previous step)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; 4. c) In Manage Environment -&amp;gt; My Credentials set up:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;Domain:&lt;/STRONG&gt; GitAuth&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;User ID:&lt;/STRONG&gt; &amp;lt;Your GitHub user ID&amp;gt;&amp;nbsp;&amp;nbsp; &lt;EM&gt;(The userid used to login to GitHub)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;Password:&lt;/STRONG&gt; &amp;lt;PAT&amp;gt;&amp;nbsp; The generated GitHub Personal Access Token.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TorOveKilnesSAS_3-1764744248809.png" style="width: 328px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/111750iA2208E997F0BF556/image-dimensions/328x258?v=v2" width="328" height="258" role="button" title="TorOveKilnesSAS_3-1764744248809.png" alt="TorOveKilnesSAS_3-1764744248809.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Testing:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Test this using the Git GUI in SAS Viya from the left handside menu (Git Repositories). Try to Pull/Push and add a file (new file stored in the Git folder) and the stage and comit it. The files should then be visible in SAS Viya and in the GitHub repository.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;NOTES:&lt;/U&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;SAS Git seems to only accept the branch names "main". So, a branch named "master" may create problems.&lt;/LI&gt;
&lt;LI&gt;Set the "main" branch as Default branch in Settings for the actual Repository.&lt;/LI&gt;
&lt;LI&gt;Files can be downloaded/Uploaded via GitHub upload/download to move/copy files between branches, like Master and Main.&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Wed, 03 Dec 2025 08:30:33 GMT</pubDate>
    <dc:creator>TorOveKilnesSAS</dc:creator>
    <dc:date>2025-12-03T08:30:33Z</dc:date>
    <item>
      <title>Juletip #3 – Create a gitHub authenthication in Viya4 using GitHub PAT and HTTPS to avoid SSH setup</title>
      <link>https://communities.sas.com/t5/SAS-Community-Nordic/Juletip-3-Create-a-gitHub-authenthication-in-Viya4-using-GitHub/m-p/979918#M508</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Hi and happy Juletip!&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Introduction&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;In Viya4, SAS Studio can interact with GitHub using authentication over SSH or HTTPS. From cadence 2025.11, SAS Studio require a file with “known hosts” in the users HOME folder, in addition to the private and public key. This is a bit cumbersome to create when users cannot SSH/login to the compute host in Viya4.&amp;nbsp;An alternative is to use HTTPS and GitHub PAT (Personal Authentication Token) as logon method for integrating GitHub and SAS Studio, see links:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;GitHub setup of PAT etc.:&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp; &lt;A href="https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.github.com%2Fen%2Fauthentication%2Fkeeping-your-account-and-data-secure%2Fmanaging-your-personal-access-tokens&amp;amp;data=05%7C02%7CTorOve.Kilnes%40sas.com%7Ce1a82960f12c463aa27708de2b52b467%7Cb1c14d5c362545b3a4309552373a0c2f%7C0%7C0%7C638995831382734827%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&amp;amp;sdata=lGePCByUbUPlTf2Hn2OGvwWRBrwQIG%2Bzog%2F4tXQHnzU%3D&amp;amp;reserved=0" target="_blank" rel="noopener"&gt;https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &lt;A href="https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F18935539%2Fauthenticate-with-github-using-a-token&amp;amp;data=05%7C02%7CTorOve.Kilnes%40sas.com%7Ce1a82960f12c463aa27708de2b52b467%7Cb1c14d5c362545b3a4309552373a0c2f%7C0%7C0%7C638995831382751364%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&amp;amp;sdata=%2Bastg0o4Nq4c2Y0Czrqbnqr02K9tkHDUf2ZUXvgjzVE%3D&amp;amp;reserved=0" target="_blank" rel="noopener"&gt;https://stackoverflow.com/questions/18935539/authenticate-with-github-using-a-token&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;SAS Git:&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/doc/en/sasstudiocdc/v_068/webeditorcdc/webeditorug/p0urbfmbb9lkpdn15yzavxdk1lgk.htm" target="_blank" rel="noopener"&gt;https://go.documentation.sas.com/doc/en/sasstudiocdc/v_068/webeditorcdc/webeditorug/p0urbfmbb9lkpdn15yzavxdk1lgk.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Steps to setup at GitHub for PAT:&lt;/STRONG&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Go to github.com and log in using your GitHub ID. Then: Settings -&amp;gt; Developer Settings&amp;nbsp; (in top right corner and at the bottom of the new menu list)&lt;/LI&gt;
&lt;LI&gt;Select "Person Access Token" -&amp;gt; Fine-grained tokens and Generate Key&lt;/LI&gt;
&lt;LI&gt;Give the Token a name, description and an expiration date.&lt;/LI&gt;
&lt;LI&gt;Set Repository Access to all of your owned repositories (or select one or more specific repos).&lt;/LI&gt;
&lt;LI&gt;Permissions. This is the uncertain area. At first, with default settings, it seems on READ for Metadata. And that may not be enough.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;When it worked, I used:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- READ to everything&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- READ and WRITE to: Access to code, codespaces secrets, merge queues, pull requests, and workflows&lt;/P&gt;
&lt;P&gt;Unclear what the &lt;STRONG&gt;minimum permissions&lt;/STRONG&gt; need to be.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Steps to setup in SAS Studio:&lt;/STRONG&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Create a folder in the "SAS Server" for holding the files that will be under Git control. You can choose any folder you like.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;Here the example path is: /srv/nortok/Git_Repos&lt;/P&gt;
&lt;OL start="2"&gt;
&lt;LI&gt;Right mouse-button on the folder and "initialize" it for Git usage. Then the icon for the folder changes to the Git icon.&lt;/LI&gt;
&lt;LI&gt;Go to Options -&amp;gt; Manage Git Connections and make a profile.&lt;/LI&gt;
&lt;LI&gt;a) Create a &lt;STRONG&gt;HTTPS profile&lt;/STRONG&gt; with values adapted to your name:&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Profile name:&lt;/STRONG&gt; TorOve_gitHub_HTTPS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Commit author Name:&lt;/STRONG&gt; &amp;lt;Your Name&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Comit author email:&lt;/STRONG&gt; &amp;lt;Your Email&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Domain ID:&lt;/STRONG&gt; GitAuth&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The domain ID can be anything, but it is good to have a domain name representing the content in the&amp;nbsp;domain.&amp;nbsp;This domain will hold you GitHub logon ID and the PAT token.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PiaRnnevik_0-1764749652133.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/111751iC3079F2139F16515/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PiaRnnevik_0-1764749652133.png" alt="PiaRnnevik_0-1764749652133.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;OL start="4"&gt;
&lt;LI&gt;b) Create a repository with the following settings:&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;STRONG&gt;Remote Repository:&lt;/STRONG&gt; &lt;A href="https://github.com/&amp;lt;your-selected-repository&amp;gt;.git" target="_blank" rel="noopener"&gt;https://github.com/&amp;lt;your-selected-repository&amp;gt;.git&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;EM&gt;(You can find this link in GitHub: go to the repository → Code → Clone → HTTPS)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;STRONG&gt;SAS Server Location:&lt;/STRONG&gt; /srv/nortok/Git_Repos&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;EM&gt;(Note: This path cannot be changed later and must remain as specified above)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;STRONG&gt;Profile:&lt;/STRONG&gt; TorOve_gitHub_HTTPS&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;EM&gt;(This is the HTTPS access profile created in the previous step)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; 4. c) In Manage Environment -&amp;gt; My Credentials set up:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;Domain:&lt;/STRONG&gt; GitAuth&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;User ID:&lt;/STRONG&gt; &amp;lt;Your GitHub user ID&amp;gt;&amp;nbsp;&amp;nbsp; &lt;EM&gt;(The userid used to login to GitHub)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;Password:&lt;/STRONG&gt; &amp;lt;PAT&amp;gt;&amp;nbsp; The generated GitHub Personal Access Token.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TorOveKilnesSAS_3-1764744248809.png" style="width: 328px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/111750iA2208E997F0BF556/image-dimensions/328x258?v=v2" width="328" height="258" role="button" title="TorOveKilnesSAS_3-1764744248809.png" alt="TorOveKilnesSAS_3-1764744248809.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Testing:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Test this using the Git GUI in SAS Viya from the left handside menu (Git Repositories). Try to Pull/Push and add a file (new file stored in the Git folder) and the stage and comit it. The files should then be visible in SAS Viya and in the GitHub repository.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;NOTES:&lt;/U&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;SAS Git seems to only accept the branch names "main". So, a branch named "master" may create problems.&lt;/LI&gt;
&lt;LI&gt;Set the "main" branch as Default branch in Settings for the actual Repository.&lt;/LI&gt;
&lt;LI&gt;Files can be downloaded/Uploaded via GitHub upload/download to move/copy files between branches, like Master and Main.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 03 Dec 2025 08:30:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Community-Nordic/Juletip-3-Create-a-gitHub-authenthication-in-Viya4-using-GitHub/m-p/979918#M508</guid>
      <dc:creator>TorOveKilnesSAS</dc:creator>
      <dc:date>2025-12-03T08:30:33Z</dc:date>
    </item>
  </channel>
</rss>

