Skip to content

Bump zip-a-folder from 4.0.4 to 7.1.1 in /extensions/ql-vscode - #4674

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/extensions/ql-vscode/zip-a-folder-7.1.1
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/extensions/ql-vscode/zip-a-folder-7.1.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 26, 2026

Copy link
Copy Markdown
Contributor

Bumps zip-a-folder from 4.0.4 to 7.1.1.

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [zip-a-folder](https://github.com/maugenst/zip-a-folder) from 4.0.4 to 7.1.1.
- [Commits](https://github.com/maugenst/zip-a-folder/commits)

---
updated-dependencies:
- dependency-name: zip-a-folder
  dependency-version: 7.1.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot requested a review from a team as a code owner November 26, 2026 13:18
@dependabot dependabot Bot added the Update dependencies Dependabot update PRs label Nov 26, 2026
Copilot AI adaptive review requested due to automatic review settings November 26, 2026 13:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The change introduces a native lzma dependency that is not packaged for all supported VS Code platforms and may exceed the minimum supported Node runtime, leaving source-archive zipping vulnerable to runtime failures.

3 open issues
1 file not reviewed
  • extensions/ql-vscode/package-lock.json: Generated file
What changed in this PR

Updates the CodeQL VS Code extension’s zip-a-folder dependency from 4.0.4 to 7.1.1, refreshing its resolved dependency graph and introducing native LZMA platform packages.

Changes:

  • Bumps the direct zip-a-folder dependency.
  • Regenerates the lockfile with @napi-rs/lzma, tinyglobby, and related platform-specific packages.
  • Updates dependency metadata and transitive package resolutions.
File Description
extensions/​ql-vscode/​package.json Updates the extension’s direct zip-a-folder dependency from 4.0.4 to 7.1.1.
extensions/​ql-vscode/​package-lock.json Locks zip-a-folder 7.1.1 and its expanded dependency tree, including native LZMA bindings and related platform packages.

Review effort: Lite (adaptive)

Comment on lines +34224 to +34225
"@napi-rs/lzma": "^1.5.3",
"tinyglobby": "^0.2.17"
"vscode-languageclient": "^11.0.0",
"yauzl": "^3.4.0",
"zip-a-folder": "^4.0.4"
"zip-a-folder": "^7.1.1"
"vscode-languageclient": "^11.0.0",
"yauzl": "^3.4.0",
"zip-a-folder": "^4.0.4"
"zip-a-folder": "^7.1.1"
@codeql-ci-app

codeql-ci-app Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Dependabot automation

Retrying failed jobs once before Copilot investigation. If CI passes, this pristine PR remains eligible for automatic merging.

Automation run

@github-actions github-actions Bot added the dependency-needs-review Dependabot automation state; remove only deliberately label Nov 26, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Dependabot automation

Diagnosis: In Build Extension run 45827921406, attempt 2, the Linux Test job failed all 5 activated-extension suites, and the CLI Test jobs failed all 13 suites on both Linux and Windows. Jest fails during suite setup: the zip-a-folder import loads @napi-rs/lzma/stream-polyfill.mjs, whose export Jest parses as CommonJS. The Windows Test job was cancelled while downloading VS Code, before a test result.

This is not just a small API migration. The upgrade from zip-a-folder 4.0.4 to 7.1.1 introduces @napi-rs/lzma 1.5.3 and requires Node ^22.20 || ^24.12 || >=25, per the upstream package. CI uses Node 22.21.1, but the extension supports VS Code 1.101.0, whose source specifies Electron 35.5.1; that Electron version uses Node 22.15.1, outside the dependency's supported range. Actual failure on that host is not established by these logs.

There are also packaging and behavior risks to resolve before merging. The Windows CLI job's VSIX contains a Windows LZMA binary, while the Linux build contains a Linux binary; the build packages with --no-dependencies, so maintainers should verify the intended artifact works across supported platforms. Upstream's 7.1 notes say symlinks are omitted from archives; this extension deletes the src directory after zipping, so symlinked source entries may be absent from the resulting archive. Decide how to handle that without undoing upstream's security protection.

Recommended action: Decide whether to defer the upgrade, use a compatible ZIP implementation, or change the supported runtime and packaging policy. Then address Jest's ESM handling without mocking away the real dependency, and validate archive contents, packaged activation across supported platforms and minimum VS Code, plus Windows and CodeQL integration. Human review and merge are required; do not treat a later green run as automatic approval.

No files were changed and no local tests were run. Web search was unavailable, and the npm version page required unavailable approval; the cited upstream source identifies itself as 7.1.1. Windows and CodeQL integration were not locally verified.

Automatic merging is blocked pending a maintainer decision.

Automation run

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependency-needs-review Dependabot automation state; remove only deliberately Update dependencies Dependabot update PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant