semgrep / ocaml-tree-sitter-semgrep

Generate parsers from tree-sitter grammars extended to support Semgrep patterns
GNU General Public License v3.0
4 stars 10 forks source link

fix(dockerfile): Allow Semgrep ellipsis in healthcheck instruction #502

Closed nmote closed 4 months ago

nmote commented 4 months ago

This had previously been omitted, so the test cases that I've added here failed to parse. When parsing dockerfile patterns, we fall back to parsing them as Bash if they fail to parse as Dockerfile. These examples parsed successfully as Bash, but the trees generated did not match, so these silently failed to match where they should.

Test plan: Automated tests.

Security