Skip to content

Commit

Permalink
Added comment
Browse files Browse the repository at this point in the history
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
  • Loading branch information
prabhu committed May 1, 2024
1 parent 1c304f7 commit 4124e2f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ private static void addComponentEvidence(final Component component, final Artifa
final String jarPath = artifact.getFile().getAbsolutePath();
final String sha1Path = jarPath.replace(".jar", ".jar.sha1");
if (jarPath.contains(".m2")) {
// This removes the home directory which might be sensitive
fileMethod.setValue(Paths.get(".m2", jarPath.split(".m2")[1]).toString());
} else {
fileMethod.setValue(jarPath);
Expand Down

0 comments on commit 4124e2f

Please sign in to comment.