Prepare for a GitHub Connection
Setup a GitHub Connection
Create a GitHub Unstructured Data Lake Object (UDLO)
GitHub Limitations and Troubleshooting
MuleSoft Anypoint Connector for Salesforce Data 360
To set up your GitHub repository with Data 360, you need to provide some details. Gather this information before you get started.
Select a method for authentication:
In GitHub, follow these instructions to generate a Classic Personal Access Token. You must use a GitHub account that has read and write access to the repository you want to use for connecting to Data 360. Ask your GitHub repository maintainer for help if required. Keep in mind:
After generating the token, you can’t see it again. Save it in a secure location. If you need to regenerate the token, you must reconfigure the connector with the new token information. Otherwise, the connector breaks.
Note
Copy the full URL to your repository, for example, https://api.github.com for
GitHub.com or https://github.enterprise.com/api/v3 for GitHub Enterprise.
Your actual URL can differ depending on your Domain Name System (DNS).
Once you’ve located the URL, proceed to Repository ID.
This procedure requires you to register an OAuth app under your organization.
See the GitHub documentation for details. As part of the process you will be shown a Client ID and a Client Secret. Make sure to copy and save the Client Secret when it displays. You cannot view it again after you close the window.
In GitHub, follow these instructions
to generate a Personal Access Token. You must use a GitHub account that has read and write access to the repository you want to use for connecting to Data 360.
If your integration uses the OAuth flow to Log in with GitHub, it may generate a token for you after you click Save.
If it asks for a token, create a Fine-grained token or Classic token with the repo and read:user scopes.
Ask your GitHub repository maintainer for help if required.
Keep in mind:
After generating the token, you can’t see it again. Save it in a secure location. If you need to regenerate the token, you must reconfigure the connector with the new token information. Otherwise, the connector breaks.
Note
To locate your OAuth Client ID:
When the Client secret is generated it displays only once. If you don’t have your client secret, use this procedure to generate a new one.
To regenerate an OAuth Client secret:
After you locate the URL, proceed to Repository ID. The API URL tells Data 360 where to send requests.
https://api.github.com.https://[hostname]/api/v3.To learn more, read the GitHub documentation on GitHub REST API Endpoints.
In the address bar for your repository, the repository ID appears after your username,
for example,
https://github.com/GHUser/RepoID. Copy both the GHUser and RepoID. For example: GHUser/RepoID.
Alternatively, using the GraphQL API Explorer, run this command. Replace the owner and repo_name with the actual information:
gh api graphql -f query='query{repository(owner: "owner", name: "repo_name"){id}}'
Use labels to classify and filter your content. When your GitHub connector runs, only specified items are ingested into Data 360. Read more about Managing labels.