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
What does "The following modules were not selected for a full scan" mean in the PDF report for the scan? 2.94KNumber of Views How to grant vendors access to view scan results in the platform? 465Number of Views Is there a place I can go online to monitor my support tickets? 592Number of Views What is the max name length characters we can have when we define one of the following in the Veracode platform? - Applica… 382Number of Views SCA issues found on workspace view not matching project view 553Number 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)