dmd db generate policy-violations

dmd db generate policy-violations

Persist all Open Policy Agent policy violations




Persist to the database all Open Policy Agent policy violations

As an alternative to writing custom Advisories (, you can leverage the power of Open Policy Agent to create Policies ( See for more information on how to write them.

This takes all policies from --policies-directory and evaluates them as defined in and then writes them to advisories table.


Flag (type) Usage Notes
-h, --help help for policy-violations
--policies-directory (string) The directory to source policies from

Options inherited from parent commands

Flag (type) Usage Notes
--db (string) the path to the input/output database
--debug whether to enable debug logging