`snyk test` in the CLI finds only one manifest file

Follow
Follow

Comments

1 comment

  • Brian Wilson

    You might want to edit this post a little bit. using this command as entered:

    snyk test $(find . -name "pom.xml" -o -name "package.json" -o -name "requirements.txt" -exec dirname {} \\;)

    You'll get this error (at least on Mac OS):

    find: -exec: no terminating ";" or "+"

    You don't need to escape the backslash at the end, so you can just enter the command with a single backlash like:

    snyk test $(find . -name "pom.xml" -o -name "package.json" -o -name "requirements.txt" -exec dirname {} \;)

    Then it runs without complaint.

    A great way to find and monitor all the manifests in a complex project structure, though!

    0
    Comment actions Permalink

Please sign in to leave a comment.