Skip to content

JS: Add support for make-dir package #19263

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

Merged
merged 4 commits into from
Apr 10, 2025
Merged

Conversation

Napalys
Copy link
Contributor

@Napalys Napalys commented Apr 9, 2025

The following pull-request adds model as data for make-dir package.

@Napalys Napalys marked this pull request as ready for review April 10, 2025 12:08
@Copilot Copilot AI review requested due to automatic review settings April 10, 2025 12:08
@Napalys Napalys requested a review from a team as a code owner April 10, 2025 12:08
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request adds support for the "make-dir" package by introducing test cases for its functions and updating the CodeQL model and change notes accordingly.

  • Introduces a new Express route in a test file to exercise the make-dir package functionality.
  • Adds a CodeQL extension model entry to flag potential path injection via the make-dir package.
  • Updates the change notes to document the new support.

Reviewed Changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.

File Description
javascript/ql/test/query-tests/Security/CWE-022/TaintedPath/make-dir.js Adds a test route exercising makeDirectory and makeDirectorySync from the make-dir package
javascript/ql/lib/ext/make-dir.model.yml Introduces a new extension model entry for the make-dir package
javascript/ql/lib/change-notes/2025-04-09-make-dir.md Documents the new support for the make-dir package
Files not reviewed (1)
  • javascript/ql/test/query-tests/Security/CWE-022/TaintedPath/TaintedPath.expected: Language not supported

@Napalys Napalys merged commit 43bf0be into github:main Apr 10, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants