-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
License violations don't include Severity. Also lots of licenses get reported as Unknown. #666
Comments
Hi @imranzunzani, It seems like this issue is related to how you've configured your watch and policy. You can find more information about configuring trigger violations using Xray policy rules in the following link: Xray Policy Rules Documentation The entries you're seeing are for packages with unknown licenses, which we treat as violations. You can remove these types of violations by editing the rule. To do so, you can remove the option "Disallow Unknown Licenses", that is shown as enabled in the screenshot below: Please feel free to reach out if you have any further questions or encounter any issues. |
Hi @attiasas , |
Hi @imranzunzani, Regarding the absence of 'Severity' information regarding the license, currently, it's not displayed. However, we have added it to our backlog, and it will be available in future versions after prioritization. "Unknown" licenses may arise from various situations:
|
Hi @attiasas , Regarding the 'Unknown' licenses, it seems like an anomalous behaviour, as the license info is there in Xray (Artifactory), but it is getting reported as 'Unknown'. |
Hi @attiasas, Thank you for the clarification. Regarding your 'Unknown' license related various situations (point 2), please find these explanations with attached datasets as mentioned below:
Explanation: As mentioned below "xmlchars 2.2.0" package is present in the artifactory and x-ray is able to identify its license information. This showcase that the package metadata is present within the Jfrog Software catalog (XUC) along with the license info. My assumption is that the frogbot and x-ray are pointing to the same knowledge base. If so, then frogbot should be able to showcase the same result set as its shown in the xray. Let me know if its otherwise. |
Hey @Avi706 @imranzunzani |
Hi @orz25, |
@imranzunzani We will take a look at this. Thank you for the feedback! |
Hi @attiasas and @orz25, As mentioned before (screenshot), the information is not present in the description either, when clicked on an element in the list. |
Hi @imranzunzani, Thank you for your submission. I will review it as soon as possible. Additionally, I will address the issue you have raised. Could you please provide more details about the information you expect for your filtering? What specific information is missing? Are you referring to the severity? Kindly elaborate on your requirements. Thank you. |
Hi @attiasas , Thank you for looking into this. The PR that I have submitted adds the Severity Field for the PR Scans. Hope you would review that soon. Other than that, there are two requirements:
|
Hi @imranzunzani, The pull request you opened has been merged, and the fix will be available in the next release of Frogbot. About the requirements:
|
Hello @imranzunzani and @Avi706 |
Hello @eranturgeman, thanks for reaching out to us. We managed to fix the unknown license issue in x-ray and we are going to test the same in Frogbot soon to check the behavior and update here. |
Great @Avi706 |
Hi @attiasas Was #2 addressed? We have also observed this issue concerning Frogbot's detection of Licenses linked to some dependencies. Several components are being indicated with an 'Unknown' license in Frogbot Scan. However, upon cross-checking within Artifactory and Xray, we have found that these reported components indeed have an license associated with them. Eg: For a python fast-api project, several (indirect) dependencies are being flagged with an unknown license The impacted dependency “Pygments==2.17.2” is listed as Unknown License but in Artifactory it is associated with BSD-2-Clause License And also, frogbot is unable to detect license for core packages for the project (python, root) |
Hi @pru-qmir, Regarding point #2, we do not support detecting licenses in first-party source code. We only support license detection when the code is in binary form or for dependencies. If you need this feature, please let us know, and we will add it to our backlog for implementation. As for the other issues you have raised: The row related to I will provide updates on the open issues as soon as I can. |
Yes, that's correct for typing-extensions. I am not sure for python, I don't see this binary in Artifactory. Should python not appear similar to root? |
Describe the bug
When reporting license violations, severity is not reported, both in the PR scan as well as Repo scan. Xray on-demand scans do include severity information for licenses. Also, a lot of licenses are reported as Unknown when using a watch with policy to report Unknown licenses. Please see the screenshots uploaded in 'Current behaviour'.
Current behavior
In PR scan:
In Repo scan:
Reproduction steps
Run Frogbot scans with a watch configured to report license violations along with unknown licenses.
Expected behavior
Severity is reported, so higher ones could be spotted over lower ones. There should not be too many unknown licenses, only legitimate cases should be reported.
JFrog Frogbot version
2.19.10
Package manager info
npm. package.json.
Git provider
GitHub
JFrog Frogbot configuration yaml file
No response
Operating system type and version
Github Actions. Ubuntu 22.04.4.
JFrog Xray version
3.87.9
The text was updated successfully, but these errors were encountered: