oracle / macaron

Macaron is an extensible supply-chain security analysis framework from Oracle Labs that supports a wide range of build systems and CI/CD services. It can be used to prevent supply chain attacks, detect malicious Python packages, or check conformance to frameworks, such as SLSA. Documentation:
https://oracle.github.io/macaron/
Universal Permissive License v1.0
135 stars 22 forks source link

Allow querying results for dependencies #94

Open behnazh-w opened 1 year ago

behnazh-w commented 1 year ago

We need to improve querying results from the DB, JSON, and HTML reports for a dependency. For example if I want to know which dependencies have had provenances but failed l3 check, I have to check each dependency manually. The question is if we should improve the HTML report, or directly query the DB? Or would it make sense to add a SQL query CLI with some predefined queries?

tromai commented 1 year ago

Thanks for opening the issue. After thinking about it, here are some of the approaches I could think of and their pros/cons:

So I think one of the main questions is that whether it makes sense to have this feature for viewing in the HTML report only or do we want to use it inside Macaron in the future.

tromai commented 2 months ago

I think with the improvement on data model and our SQLite database. We can now query dependencies information and write policies about the dependencies of a software component Do you think we should close this issue?