Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents


...

General Information

Please Note RDK Central Github Github https://github.com/rdkcentral uses your personal Github ID handle

...

uses a pubic Github ID handle

If you have multiple GitHub accounts, e.g. public account(s) and a corporate enterprise account use the GitHub account switcher to make sure you are on the correct account before making any changes, just click the account switcher arrows.

Image Added

If you raise a support ticket please ensure you tell us your public GitHub username and any repositories you are having issues accessing.


...

Clone Issues

To access rdkcentral GitHub repositories without having to enter your username/password you must create a PAT and set this in your ~/.netrc

Code Block
themeMidnight
machine github.com
    login <Public GitHub userID>
    password <PAT>


To create a PAT navigate to Settings - Developer Settings - Personal access tokens - Tokens (classic)

Note: for git actions (clone/push/pr) you need to select at least the following scopes:

repo write:packages

Image Added


...

Private Repository Access and GitHub Invite Issues

The following things should be checked if you are having issues accessing rdkcentral GitHub private repositories:

  1. If accessing private repositories please ensure you have associated your a PUBLIC GitHub ID with your RDK Central Account:
    1. RDK Central Github Profile Setup for Private Repository Access
  2. Once step 1 is done you will receive a GitHub Invite to the email account associated with your PERSONAL GithHub AccountPUBLIC GitHub Account that you associated with your rdkcentral account, make sure you click on the invite.
    1. if you haven't received the invite within 24 hours then please send a support request to support@rdkcentral.com
    2. check https://github.com/settings/emails to see what your public GitHub primary email and other accounts are configured as for the public account you are using
    3. make sure to check Junk/Spam/Filtered emails if you don't see it
    4. the invite remains valid for 7 days

Note GitHub invites will only have been issued if you are a member of Comcast GHEC or have raised a support ticket requesting access to a private repo.

Valid GHEC users will automatically receive the invite and do not need to raise a support ticket unless they haven't received it within 24 hours. 

If you entered an invalid GHEC or Public GitHub user ID the invite will not be sent until it is corrected.


...

Working with multiple GitHub Organisations and Accounts

If you are a member of more than one GitHub organisation and have different GitHub accounts for them, e.g. your a member of rdkcentral and an enterprise GitHub organisation, you can setup  your access as follows:

Code Block
themeMidnight
~/.gitconfig

[url "https://PUBLIC_ID@github.com/rdkcentral"]
    insteadOf = "https://github.com/rdkcentral"
    insteadOf = "ssh://github.com/rdkcentral"
    insteadOf = "ssh://git@github.com/rdkcentral"
    insteadOf = "git@github.com:rdkcentral"
    insteadOf = "github.com:rdkcentral"

[url "https://ENTERPRISE_ID@github.com/company"]
    insteadOf = "https://github.com/company"
    insteadOf = "ssh://github.com/company"
    insteadOf = "ssh://git@github.com/company"
    insteadOf = "git@github.com:company"
    insteadOf = "github.com:company"


Code Block
themeMidnight
~/.netrc

machine github.com 
    login PUBLIC_ID 
    password PUBLIC_ID_PAT
machine github.com 
    login ENTERPRISE_ID 
    password ENTERPRISE_ID_PAT


...