Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 27, 2025

Bumps lint-staged from 16.1.6 to 16.2.6.

Release notes

Sourced from lint-staged's releases.

v16.2.6

Patch Changes

  • #1693 33d4502 Thanks @​Adrian-Baran-GY! - Fix problems with --continue-on-error option, where tasks might have still been killed (SIGINT) when one of them failed.

v16.2.5

Patch Changes

  • #1687 9e02d9d Thanks @​iiroj! - Fix unhandled promise rejection when spawning tasks (instead of the tasks themselves failing). Previously when a task failed to spawn, lint-staged also failed and the backup stash might not have been automatically restored.

v16.2.4

Patch Changes

v16.2.3

Patch Changes

  • #1669 27cd541 Thanks @​iiroj! - When using --fail-on-changes, automatically hidden (partially) unstaged changes are no longer counted to make lint-staged fail.

v16.2.2

Patch Changes

  • #1667 699f95d Thanks @​iiroj! - The backup stash will not be dropped when using --fail-on-changes and there are errors. When reverting to original state is disabled (via --no-revert or --fail-on-changes), hidden (partially) unstaged changes are still restored automatically so that it's easier to resolve the situation manually.

    Additionally, the example for using the backup stash manually now uses the correct backup hash, if available:

    % npx lint-staged --fail-on-changes
    ✔ Backed up original state in git stash (c18d55a3)
    ✔ Running tasks for staged files...
    ✖ Tasks modified files and --fail-on-changes was used!
    ↓ Cleaning up temporary files...
    ✖ lint-staged failed because --fail-on-changes was used.
    Any lost modifications can be restored from a git stash:
    > git stash list --format="%h %s"
    c18d55a3 On main: lint-staged automatic backup
    > git apply --index c18d55a3

v16.2.1

Patch Changes

  • #1664 8277b3b Thanks @​iiroj! - The built-in TypeScript types have been updated to more closely match the implementation. Notably, the list of staged files supplied to task functions is readonly string[] and can't be mutated. Thanks @​outslept!

... (truncated)

Changelog

Sourced from lint-staged's changelog.

16.2.6

Patch Changes

  • #1693 33d4502 Thanks @​Adrian-Baran-GY! - Fix problems with --continue-on-error option, where tasks might have still been killed (SIGINT) when one of them failed.

16.2.5

Patch Changes

  • #1687 9e02d9d Thanks @​iiroj! - Fix unhandled promise rejection when spawning tasks (instead of the tasks themselves failing). Previously when a task failed to spawn, lint-staged also failed and the backup stash might not have been automatically restored.

16.2.4

Patch Changes

16.2.3

Patch Changes

  • #1669 27cd541 Thanks @​iiroj! - When using --fail-on-changes, automatically hidden (partially) unstaged changes are no longer counted to make lint-staged fail.

16.2.2

Patch Changes

  • #1667 699f95d Thanks @​iiroj! - The backup stash will not be dropped when using --fail-on-changes and there are errors. When reverting to original state is disabled (via --no-revert or --fail-on-changes), hidden (partially) unstaged changes are still restored automatically so that it's easier to resolve the situation manually.

    Additionally, the example for using the backup stash manually now uses the correct backup hash, if available:

    % npx lint-staged --fail-on-changes
    ✔ Backed up original state in git stash (c18d55a3)
    ✔ Running tasks for staged files...
    ✖ Tasks modified files and --fail-on-changes was used!
    ↓ Cleaning up temporary files...
    ✖ lint-staged failed because --fail-on-changes was used.
    Any lost modifications can be restored from a git stash:
    > git stash list --format="%h %s"
    c18d55a3 On main: lint-staged automatic backup
    > git apply --index c18d55a3

... (truncated)

Commits
  • a1ec972 chore(changeset): release
  • ddd5340 build(deps): regenerate package-lock.json
  • ceb253a build(deps): update Vitest 4
  • 58cc126 build(deps): update listr2
  • 33d4502 fix: run all tasks when --continue-on-error=true
  • 54ba9eb test: fix test usage for --continue-on-error
  • b1715d9 test: fix test assertions for --continue-on-error to reveal incorrect behavior
  • 1f6a326 chore(changeset): release
  • 6ab937c ci: use separate caches for MSYS2 and Cygwin
  • 6d71384 fix: catch errors when calling spawn
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by [GitHub Actions](https://www.npmjs.com/~GitHub Actions), a new releaser for lint-staged since your current version.


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 merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @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 [lint-staged](https://github.com/lint-staged/lint-staged) from 16.1.6 to 16.2.6.
- [Release notes](https://github.com/lint-staged/lint-staged/releases)
- [Changelog](https://github.com/lint-staged/lint-staged/blob/main/CHANGELOG.md)
- [Commits](lint-staged/lint-staged@v16.1.6...v16.2.6)

---
updated-dependencies:
- dependency-name: lint-staged
  dependency-version: 16.2.6
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Oct 27, 2025
@dependabot dependabot bot requested a review from ulises-jeremias as a code owner October 27, 2025 04:10
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Oct 27, 2025
@coderabbitai
Copy link

coderabbitai bot commented Oct 27, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 27, 2025

MegaLinter analysis: Error

Descriptor Linter Files Fixed Errors Warnings Elapsed time
❌ COPYPASTE jscpd yes 5 no 2.68s
✅ EDITORCONFIG editorconfig-checker 2 0 0 0.32s
✅ JSON jsonlint 2 0 0 0.37s
✅ JSON npm-package-json-lint yes no no 0.39s
✅ JSON prettier 2 0 0 0 0.43s
✅ JSON v8r 2 0 0 5.51s
❌ REPOSITORY checkov yes 1 no 13.5s
✅ REPOSITORY gitleaks yes no no 1.58s
✅ REPOSITORY git_diff yes no no 0.01s
✅ REPOSITORY grype yes no no 26.02s
✅ REPOSITORY secretlint yes no no 0.52s
✅ REPOSITORY syft yes no no 1.58s
❌ REPOSITORY trivy yes 1 no 6.88s
✅ REPOSITORY trivy-sbom yes no no 3.91s
✅ REPOSITORY trufflehog yes no no 2.22s
✅ SPELL cspell 3 0 0 2.95s
❌ SPELL lychee 2 2 0 2.09s

Detailed Issues

❌ REPOSITORY / checkov - 1 error
github_actions scan results:

Passed checks: 247, Failed checks: 1, Skipped checks: 0

Check: CKV2_GHA_1: "Ensure top-level permissions are not set to write-all"
	FAILED for resource: on(MegaLinter)
	File: /.github/workflows/mega-linter.yml:45-46
❌ COPYPASTE / jscpd - 5 errors
Clone found (typescript):
 - packages/create-awesome-node-app/src/list.ts [76:16 - 87:2] (11 lines, 82 tokens)
   packages/create-awesome-node-app/src/list.ts [21:24 - 32:10]

Clone found (typescript):
 - packages/create-node-app-core/loaders.ts [143:21 - 155:6] (12 lines, 80 tokens)
   packages/create-node-app-core/loaders.ts [80:19 - 92:32]

Clone found (typescript):
 - packages/create-node-app-core/loaders.ts [186:9 - 201:19] (15 lines, 115 tokens)
   packages/create-node-app-core/loaders.ts [161:9 - 176:17]

Clone found (markdown):
 - packages/create-awesome-node-app/CHANGELOG.md [21:1 - 33:8] (12 lines, 327 tokens)
   packages/create-node-app-core/CHANGELOG.md [13:1 - 29:4]

Clone found (url):
 - README.md [218:1 - 232:70] (14 lines, 88 tokens)
   packages/create-awesome-node-app/README.md [286:1 - 300:70]

┌────────────┬────────────────┬─────────────┬──────────────┬──────────────┬──────────────────┬───────────────────┐
│ Format     │ Files analyzed │ Total lines │ Total tokens │ Clones found │ Duplicated lines │ Duplicated tokens │
├────────────┼────────────────┼─────────────┼──────────────┼──────────────┼──────────────────┼───────────────────┤
│ typescript │ 16             │ 2835        │ 22977        │ 3            │ 38 (1.34%)       │ 277 (1.21%)       │
├────────────┼────────────────┼─────────────┼──────────────┼──────────────┼──────────────────┼───────────────────┤
│ json       │ 23             │ 558         │ 3477         │ 0            │ 0 (0%)           │ 0 (0%)            │
├────────────┼────────────────┼─────────────┼──────────────┼──────────────┼──────────────────┼───────────────────┤
│ markdown   │ 12             │ 1229        │ 7706         │ 1            │ 12 (0.98%)       │ 327 (4.24%)       │
├────────────┼────────────────┼─────────────┼──────────────┼──────────────┼──────────────────┼───────────────────┤
│ javascript │ 5              │ 81          │ 458          │ 0            │ 0 (0%)           │ 0 (0%)            │
├────────────┼────────────────┼─────────────┼──────────────┼──────────────┼──────────────────┼───────────────────┤
│ url        │ 2              │ 32          │ 200          │ 1            │ 14 (43.75%)      │ 88 (44%)          │
├────────────┼────────────────┼─────────────┼──────────────┼──────────────┼──────────────────┼───────────────────┤
│ yaml       │ 1              │ 22          │ 45           │ 0            │ 0 (0%)           │ 0 (0%)            │
├────────────┼────────────────┼─────────────┼──────────────┼──────────────┼──────────────────┼───────────────────┤
│ Total:     │ 59             │ 4757        │ 34863        │ 5            │ 64 (1.35%)       │ 692 (1.98%)       │
└────────────┴────────────────┴─────────────┴──────────────┴──────────────┴──────────────────┴───────────────────┘
Found 5 clones.
HTML report saved to megalinter-reports/copy-paste/html/
ERROR: jscpd found too many duplicates (1.35%) over threshold (0%)
Error: ERROR: jscpd found too many duplicates (1.35%) over threshold (0%)
    at ThresholdReporter.report (/node-deps/node_modules/@jscpd/finder/dist/index.js:612:13)
    at /node-deps/node_modules/@jscpd/finder/dist/index.js:110:18
    at Array.forEach (<anonymous>)
    at /node-deps/node_modules/@jscpd/finder/dist/index.js:109:22
    at async /node-deps/node_modules/jscpd/dist/jscpd.js:351:5
❌ SPELL / lychee - 2 errors
[404] https://opencollective.com/unts/projects/eslint-import-resolver-ts | Network error: Not Found
[403] https://www.patreon.com/feross | Network error: Forbidden
📝 Summary
---------------------
🔍 Total..........626
✅ Successful.....624
⏳ Timeouts.........0
🔀 Redirected.......0
👻 Excluded.........0
❓ Unknown..........0
🚫 Errors...........2

Errors in package-lock.json
[404] https://opencollective.com/unts/projects/eslint-import-resolver-ts | Network error: Not Found
[403] https://www.patreon.com/feross | Network error: Forbidden
❌ REPOSITORY / trivy - 1 error
2025-10-27T04:12:09Z	INFO	[vulndb] Need to update DB
2025-10-27T04:12:09Z	INFO	[vulndb] Downloading vulnerability DB...
2025-10-27T04:12:09Z	INFO	[vulndb] Downloading artifact...	repo="mirror.gcr.io/aquasec/trivy-db:2"
34.55 MiB / 73.60 MiB [---------------------------->________________________________] 46.94% ? p/s ?73.60 MiB / 73.60 MiB [----------------------------------------------------------->] 100.00% ? p/s ?73.60 MiB / 73.60 MiB [----------------------------------------------------------->] 100.00% ? p/s ?73.60 MiB / 73.60 MiB [---------------------------------------------->] 100.00% 65.10 MiB p/s ETA 0s73.60 MiB / 73.60 MiB [---------------------------------------------->] 100.00% 65.10 MiB p/s ETA 0s73.60 MiB / 73.60 MiB [---------------------------------------------->] 100.00% 65.10 MiB p/s ETA 0s73.60 MiB / 73.60 MiB [---------------------------------------------->] 100.00% 60.90 MiB p/s ETA 0s73.60 MiB / 73.60 MiB [---------------------------------------------->] 100.00% 60.90 MiB p/s ETA 0s73.60 MiB / 73.60 MiB [---------------------------------------------->] 100.00% 60.90 MiB p/s ETA 0s73.60 MiB / 73.60 MiB [---------------------------------------------->] 100.00% 56.97 MiB p/s ETA 0s73.60 MiB / 73.60 MiB [---------------------------------------------->] 100.00% 56.97 MiB p/s ETA 0s73.60 MiB / 73.60 MiB [---------------------------------------------->] 100.00% 56.97 MiB p/s ETA 0s73.60 MiB / 73.60 MiB [-------------------------------------------------] 100.00% 31.95 MiB p/s 2.5s2025-10-27T04:12:13Z	INFO	[vulndb] Artifact successfully downloaded	repo="mirror.gcr.io/aquasec/trivy-db:2"
2025-10-27T04:12:13Z	INFO	[vuln] Vulnerability scanning is enabled
2025-10-27T04:12:13Z	INFO	[misconfig] Misconfiguration scanning is enabled
2025-10-27T04:12:13Z	INFO	[misconfig] Need to update the checks bundle
2025-10-27T04:12:13Z	INFO	[misconfig] Downloading the checks bundle...
165.46 KiB / 165.46 KiB [---------------------------------------------------------] 100.00% ? p/s 0s2025-10-27T04:12:16Z	INFO	[npm] To collect the license information of packages, "npm install" needs to be performed beforehand	dir="node_modules"
2025-10-27T04:12:16Z	INFO	[npm] To collect the license information of packages, "npm install" needs to be performed beforehand	dir="tools/danger/node_modules"
2025-10-27T04:12:16Z	INFO	Suppressing dependencies for development and testing. To display them, try the '--include-dev-deps' flag.
2025-10-27T04:12:16Z	INFO	Number of language-specific files	num=2
2025-10-27T04:12:16Z	INFO	[npm] Detecting vulnerabilities...
2025-10-27T04:12:16Z	INFO	Detected config files	num=2

Report Summary

┌───────────────────────────────┬────────────┬─────────────────┬───────────────────┐
│            Target             │    Type    │ Vulnerabilities │ Misconfigurations │
├───────────────────────────────┼────────────┼─────────────────┼───────────────────┤
│ package-lock.json             │    npm     │        0        │         -         │
├───────────────────────────────┼────────────┼─────────────────┼───────────────────┤
│ .devcontainer/Dockerfile      │ dockerfile │        -        │         2         │
├───────────────────────────────┼────────────┼─────────────────┼───────────────────┤
│ .devcontainer/base.Dockerfile │ dockerfile │        -        │         2         │
└───────────────────────────────┴────────────┴─────────────────┴───────────────────┘
Legend:
- '-': Not scanned
- '0': Clean (no security findings detected)


.devcontainer/Dockerfile (dockerfile)
=====================================
Tests: 27 (SUCCESSES: 25, FAILURES: 2)
Failures: 2 (UNKNOWN: 0, LOW: 1, MEDIUM: 0, HIGH: 1, CRITICAL: 0)

AVD-DS-0002 (HIGH): Specify at least 1 USER command in Dockerfile with non-root user as argument
════════════════════════════════════════
Running containers with 'root' user can lead to a container escape situation. It is a best practice to run containers as non-root users, which can be done by adding a 'USER' statement to the Dockerfile.

See https://avd.aquasec.com/misconfig/ds002
────────────────────────────────────────


AVD-DS-0026 (LOW): Add HEALTHCHECK instruction in your Dockerfile
════════════════════════════════════════
You should add HEALTHCHECK instruction in your docker container images to perform the health check on running containers.

See https://avd.aquasec.com/misconfig/ds026
────────────────────────────────────────



.devcontainer/base.Dockerfile (dockerfile)
==========================================
Tests: 27 (SUCCESSES: 25, FAILURES: 2)
Failures: 2 (UNKNOWN: 0, LOW: 1, MEDIUM: 0, HIGH: 1, CRITICAL: 0)

AVD-DS-0002 (HIGH): Specify at least 1 USER command in Dockerfile with non-root user as argument
════════════════════════════════════════
Running containers with 'root' user can lead to a container escape situation. It is a best practice to run containers as non-root users, which can be done by adding a 'USER' statement to the Dockerfile.

See https://avd.aquasec.com/misconfig/ds002
────────────────────────────────────────


AVD-DS-0026 (LOW): Add HEALTHCHECK instruction in your Dockerfile
════════════════════════════════════════
You should add HEALTHCHECK instruction in your docker container images to perform the health check on running containers.

See https://avd.aquasec.com/misconfig/ds026
────────────────────────────────────────

See detailed reports in MegaLinter artifacts
Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff

MegaLinter is graciously provided by OX Security

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

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant