Skip to content

Release Dockerfile parser with EXPOSE env protocol support - #2

Open
charle-z wants to merge 1 commit into
semgrep:mainfrom
charle-z:fix/dockerfile-expose-env-protocol-11798
Open

Release Dockerfile parser with EXPOSE env protocol support#2
charle-z wants to merge 1 commit into
semgrep:mainfrom
charle-z:fix/dockerfile-expose-env-protocol-11798

Conversation

@charle-z

Copy link
Copy Markdown

Generated companion for semgrep/semgrep#11798 and semgrep/ocaml-tree-sitter-semgrep#660.

Source grammar commit: charle-z/ocaml-tree-sitter-semgrep@5123a89.

The source change adds the missing EXPOSE operand form expansion + /tcp|/udp without widening the accepted protocol set. The generated CST adds Expa_choice_SLAS, preserving both the environment expansion and protocol token.

Validation before release:

  • tree-sitter corpus: 138/138 pass, including $PORT/udp, ${PORT}/tcp, mixed EXPOSE values, unsupported /icmp, and empty protocol cases
  • lang/test-lang dockerfile: pass (C/OCaml generation, parser build, 2/2 example parses, Blank-node check)
  • generated from the current ocaml-tree-sitter-semgrep release flow using tree-sitter 0.22.6

The larger generated diff is mechanical output from the current generator; the human source change is the one-line grammar production in #660.

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.

1 participant