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.68KNumber of Views How to fix CWE 89 SQL Injection flaws? 25.18KNumber of Views App not in a state where new builds are allowed 5.17KNumber of Views Initial Static Analysis + Upload & Scan SCA Customer Onboarding 167Number of Views App to App Flaw Matching 466Number 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)