You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/pages/tutorials/verify_with_existing_policy.rst
+34-1Lines changed: 34 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ Run the ``malware-detection`` policy against a package URL:
27
27
./run_macaron.sh verify-policy \
28
28
--database output/macaron.db \
29
29
--existing-policy malware-detection \
30
-
--package-url "pkg:pypi/django"
30
+
--package-url "pkg:pypi/django@5.0.6"
31
31
32
32
The result of this command should show that the policy succeeds with a zero exit code (if a policy fails to pass, Macaron returns a none-zero error code):
33
33
@@ -44,6 +44,39 @@ The result of this command should show that the policy succeeds with a zero exit
.. note:: By default, Macaron clones the repositories and creates output files under the ``output`` directory. To understand the structure of this directory please see :ref:`Output Files Guide <output_files_guide>`.
55
+
56
+
.. code-block:: shell
57
+
58
+
./run_macaron.sh verify-policy \
59
+
--database output/macaron.db \
60
+
--existing-policy malware-detection \
61
+
--package-url "pkg:pypi/django@*"
62
+
63
+
It uses the wildcard '*' to checks for components satisfying the expression "pkg:pypi/django@*".
64
+
The result of this command should show that the policy succeeds with a zero exit code (if a policy fails to pass, Macaron returns a none-zero error code):
0 commit comments