SourceClear Error: Unable to collect Git metadata

SourceClear relies on Git in order to collect specific pieces of information needed for the platform. The information we retrieve is used to de-duplicate projects and identify project name and state.

If this error is appearing, it means SourceClear wasn't able to find a piece of information it was looking for.
Here are a few things to check:

1) Are you using a Git-based repository system? (Github, Bitbucket, etc)
      If No, then set the SRCCLR_SCM_* variables so that SourceClear can still retrieve specific information. This information doesn't have to be valid, but it's recommended that the values used are memorable because if they scan the project again, with different variables, it will appear as a separate project within SourceClear.
     For more information on these variables, refer to the documentation here: https://www.sourceclear.com/docs/agent-other-scm/

2) Is the .git folder leading to where SourceClear is being run from? (i.e., it may be in a parent folder or the current folder, but not in a child folder)
      If No, then the git metadata has been removed from the project before SourceClear was run. To fix this issues, either do not remove the git metadata, ensure that you pull the git metadata into the docker container that you are using, or use the same advice from check 1.

3) Is the git remote URL set? (To check this, run git remote -v)
      If nothing shows when you run this command, it is likely that the git project was just created locally. While still a valid git project, SourceClear requires a URL to be set so that we can de-duplicate projects. Have your customer add a remote URL, or follow the advice from check 1

 

Topics (1)

Related Topics

    Ask the Community

    Get answers, share a use case, discuss your favorite features, or get input from the Community.