fossas / fossa-cli

Fast, portable and reliable dependency analysis for any codebase. Supports license & vulnerability scanning for large monoliths. Language-agnostic; integrates with 20+ build systems.
https://fossa.com
Other
1.26k stars 173 forks source link

Ane-1711 jar fingerprints testing [3/3] #1445

Closed csasarak closed 2 months ago

csasarak commented 2 months ago

Overview

This adds a little automated testing around analyzing jars in containers with millhone.

It also modifies the way we look up filepaths in tar files to normalize them. We avoided this in the past because I guess most of the tarballs we were scanning had everything at the root level so filepath separators didn't cause an error. This isn't true for newer images I've made with docker save.

Acceptance criteria

There are now automated tests that exercising reading jars out of containers with millhone and processing them in the CLI.

Testing plan

This PR is just tests to run. Manual tests have been done on the branches this is stacked on top of.

Risks

None.

Metrics

Is this change something that can or should be tracked? If so, can we do it today? And how? If its easy, do it

References

Checklist