Private repos must be accessed by a GitHub user login that has been authenticated with Commerce Cloud. These repos contain code that is licensed, based on your Commerce Cloud license, and covered under your NDA. They aren’t open-source. This includes closed source repos like Storefront Reference Architecture.
If you access a private repo and aren’t logged into GitHub with a Commerce Cloud authenticated account, you receive a 404 error from GitHub as if the repository doesn’t exist at all!
Important
Accessing Private GitHub Repos
To access private repos associate your GitHub account with Commerce Cloud using Account Manager:
If you don’t have a GitHub user account, create one from the GitHub Sign Up page.
Your GitHub account doesn’t need to be related to any Commerce Cloud or Salesforce account you already have. It can be something different.
Note
Enable two-factor authentication (2FA) for your GitHub account.
To maintain trust, Salesforce requires that anyone accessing the GitHub repositories has 2FA set up for their account. Follow the directions for Configuring Two-Factor Authentication on GitHub, and complete that process.
This is separate from Commerce Cloud or Salesforce two-factor authentication. Use any mechanism for 2FA for your GitHub account.
Note
With a valid and logged in GitHub user account with 2FA configured, associate that account with Commerce Cloud opening the Salesforce Commerce Cloud Single Sign On page. This connects your GitHub user account to your Account Manager user account.
With the process complete, your GitHub account is allowed access to Salesforce Commerce Cloud private repositories. You’re asked to authenticate with your Account Manager credentials when you attempt to access private repositories.
GitHub Inactivity and User Maintenance
GitHub users who have been inactive for 90 days are removed from the org.
Removed users lose access to private forks of the org’s private repos.
Important
Users who are removed as a result of this inactivity receive an automated email from GitHub, and can rejoin by authenticating with their Account Manager credentials in the opening the Salesforce Commerce Cloud Single Sign On page.