Add A Git LFS Service
When you add a GitHub connection, MDSSC runs an LFS Discovery job. The discovery checks every branch of every repository in the connection. It reads the .gitattributes and .lfsconfig files to find the Git LFS servers that the repositories use.
At the moment, MDSSC supports Git LFS only for GitHub connections.
Git LFS Child Connections
For each LFS server that it finds, MDSSC creates a Git LFS child connection under the GitHub connection. All LFS servers on the same host share one child connection. A child connection has the name of its parent connection and the LFS server host, for example github_enterprise_qa - Git LFS (github.example.com). You cannot change this name. When you rename the parent connection, its child connections use the new name.
MDSSC detects these LFS server types:
GitHub LFS: the LFS server of the GitHub instance.
Nexus LFS: a Git LFS repository on a Sonatype Nexus server.
Git LFS: any other LFS server.
To see the child connections, go to Inventory and click the arrow next to the GitHub connection. Each child connection shows the LFS server URL, the server type, the number of repositories and the status:

Rediscover LFS
Run the discovery again when repositories or branches start or stop using Git LFS:
In Inventory, open the GitHub connection.
Click Actions and select Rediscover LFS.

You can also click the Rediscover LFS button in the row of the GitHub connection in Inventory. While a discovery runs, the connection page shows its progress and Rediscover LFS is not available. After the discovery, the connection page shows the date of the Last LFS discovery. If the discovery fails, the page shows the error and a Retry button.
Status of a Git LFS connection
Online: the LFS server accepts the credentials.
Needs credentials: no stored credentials match this LFS server.
Unauthorized: the LFS server rejected the credentials.
Unreachable: the LFS server did not respond.
Stale: no repository uses this LFS server anymore.
Checking: discovery has not checked this LFS server yet.
Each repository of a Git LFS connection also shows a status. Active means that the repository uses this LFS server. Stale means that no branch of the repository uses this LFS server anymore, or that the repository was deleted.
Credentials
MDSSC finds the credentials of a Git LFS connection automatically:
A GitHub LFS connection uses the credentials of its GitHub connection.
A Nexus LFS connection uses the credentials of a Nexus connection on the same host.
If MDSSC finds no credentials, the status is Needs credentials. To add or change the credentials:
In Inventory, click Add credentials or Update credentials in the row of the Git LFS connection.
Select one of the options:
Use the credentials of a Nexus connection: select the Nexus connection in Nexus connection.
Enter new credentials: enter the Username and Password. To also create a Nexus connection with these credentials, turn on Also save as a Nexus connection.
If the LFS server URL uses HTTP, select Allow credentials over HTTP.
Click Save. MDSSC checks the LFS server again and updates the status.

With Allow credentials over HTTP, the credentials are sent unencrypted. Use it only on a trusted network.
Scanning a Git LFS connection
Open a Git LFS connection in Inventory to see its repositories. Open a repository to see the branches that use the LFS server. You can start a job on the whole connection, on one repository or on specific branches, the same as for any other connection.

A scan of a Git LFS connection covers the LFS pointer files and the LFS objects that they point to:
MDSSC scans each pointer file and downloads the LFS object from the LFS server to scan it.
There is no size limit for LFS objects.
MDSSC scans an LFS object only once per scan, also when several branches or files point to it.
A missing LFS object or a rejected download shows as a result of that file. The rest of the scan continues.
Deleting a Git LFS connection
To delete a Git LFS connection, click the delete button in its row in Inventory and confirm. If the LFS server is still in use, the next discovery creates the connection again. When you delete a GitHub connection, MDSSC also deletes its Git LFS connections.