SourceClear Error: Unable to collect Git metadata
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 Articles
Forced Validation Paradigm Page2 2.65KNumber of Views The Pipeine Scan --include parameter and the scanned file size 720Number of Views Is there a place I can go online to monitor my support tickets? 621Number of Views What does "The following modules were not selected for a full scan" mean in the PDF report for the scan? 2.98KNumber of Views The MS VS Publish Vs. the MSBuild Build Compilations 313Number of Views
This topic isn't available in this community.
Related Topics
Ask the Community
Get answers, share a use case, discuss your favorite features, or get input from the Community.
.png)