Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

nmote
Copy link
Collaborator

@nmote nmote commented Jul 31, 2024

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

  • Change has no security implications (otherwise, ping the security team)

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.
@nmote nmote requested a review from a team as a code owner July 31, 2024 22:56
@nmote nmote requested review from aryx and amchiclet and removed request for a team July 31, 2024 22:56
@nmote nmote merged commit fbbf4a3 into main Aug 1, 2024
2 of 3 checks passed
@nmote nmote deleted the nmote/healthcheck branch August 1, 2024 21:01
semgrep-ci bot pushed a commit to semgrep/semgrep that referenced this pull request Aug 2, 2024
…rietary#1950)

The relevant grammar changes are in
semgrep/ocaml-tree-sitter-semgrep#502

Fixes SAF-1441

Test Plan: Automated tests

synced from Pro 69486abd95799e64cc39e1884b59789464abb0b7
aryx pushed a commit to semgrep/semgrep that referenced this pull request Aug 2, 2024
…rietary#1950)

The relevant grammar changes are in
semgrep/ocaml-tree-sitter-semgrep#502

Fixes SAF-1441

Test Plan: Automated tests

synced from Pro 69486abd95799e64cc39e1884b59789464abb0b7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants