Skip to content

fix(query): changed all dockerfile queries for case insensitive support of dockerfile commands#8006

Draft
cx-andre-pereira wants to merge 5 commits intoCheckmarx:masterfrom
cx-andre-pereira:Dockerfile_queries_fix_for_case_insensitivity
Draft

fix(query): changed all dockerfile queries for case insensitive support of dockerfile commands#8006
cx-andre-pereira wants to merge 5 commits intoCheckmarx:masterfrom
cx-andre-pereira:Dockerfile_queries_fix_for_case_insensitivity

Conversation

@cx-andre-pereira
Copy link
Copy Markdown
Contributor

@cx-andre-pereira cx-andre-pereira commented Mar 23, 2026

Reason for Proposed Changes

  • The changes in fix(analyzer): improvement to dockerfile scanning #7995 will make it so scanned "dockerfiles" account for valid case insensitive syntax, however none of the Dockerfile queries are prepared to handle this, all of them have hardcoded upper case reference to docker commands.

Proposed Changes

  • Changed all queries "searchKey" values to properly account for casing.
  • Added a new positive/negative sample for every test folder, these are identical to the positive/positive1 and negative/negative1 tests that were already there but now with all lowercase commands.

I submit this contribution under the Apache-2.0 license.

@github-actions github-actions bot added community Community contribution query New query feature dockerfile labels Mar 23, 2026
@cx-andre-pereira cx-andre-pereira changed the title Dockerfile queries fix for case insensitivity fix(query): changed all dockerfile queries for case insensitivity support Mar 23, 2026
@cx-andre-pereira cx-andre-pereira changed the title fix(query): changed all dockerfile queries for case insensitivity support fix(query): changed all dockerfile queries for case insensitive support of docker configurations Mar 23, 2026
@cx-andre-pereira cx-andre-pereira changed the title fix(query): changed all dockerfile queries for case insensitive support of docker configurations fix(query): changed all dockerfile queries for case insensitive support of docker commands Mar 23, 2026
@github-actions github-actions bot added the docker Docker query label Mar 23, 2026
@cx-andre-pereira cx-andre-pereira changed the title fix(query): changed all dockerfile queries for case insensitive support of docker commands fix(query): changed all dockerfile queries for case insensitive support of dockerfile commands Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community Community contribution docker Docker query dockerfile query New query feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant