Expectation from Xray scan:

Artifactory: How to build and publish a Nuget project using the JFrog CLI to Artifactory and how to scan it and what to expect after it is scanned by JFrog Xray

AuthorFullName__c
Swarnendu Kayal
articleNumber
000005166
ft:sourceType
Salesforce
FirstPublishedDate
2021-11-17T14:09:29Z
lastModifiedDate
2024-03-10T07:49:12Z
VersionNumber
7

1. After following the above steps, the build is scanned properly and we could see the Xray status is showing as "Critical" for this build as shown below -

User-added image

2. Xray will not report any violations for the package "NugetTest.1.0.0.nupkg". It is expected behavior as the package "NugetTest.1.0.0.nupkg" only has metadata information of the package "log4net.2.0.8.nupkg" but not the physical file. 

User-added image

 

3. The Xray data for the package will be showing no violations even though the repository “k-nuget-local” is part of the watch and the history scan has been triggered for the watch.

User-added image

4. The Xray scans any dependencies which are present there in the "build-info.json" file. As in the build, we can see that the dependency "log4net:2.0.8" is there, the build is scanned by the Xray and it is reporting the violation.

User-added image

5. After the scan the, Xray Data for the build shows the violations as shown below -

User-added image