-
Notifications
You must be signed in to change notification settings - Fork 29
Adds lock file linting to flows running with every PR. Closes #775 #861
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1579,10 +1579,10 @@ | |
| "@tailwindcss/postcss": "4.3.3", | ||
| "@types/glob": "8.1.0", | ||
| "@types/mocha": "10.0.10", | ||
| "@types/node-forge": "^1.3.11", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also noticed unrelated dependency changes (
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @nicodecleyre TBH those changes were just done 'automagically' after npm install. those are the same packages in the same versions just places in different order in the package.json. Not sure if the lint or npm install reoder this part π. |
||
| "@types/react": "18.0.8", | ||
| "@types/react-dom": "18.0.3", | ||
| "@types/react-router-dom": "5.3.3", | ||
| "@types/node-forge": "^1.3.11", | ||
| "@types/sinon": "^17.0.4", | ||
| "@types/vscode": "^1.125.0", | ||
| "@typescript-eslint/eslint-plugin": "8.65.0", | ||
|
|
@@ -1597,6 +1597,7 @@ | |
| "fast-glob": "^3.2.11", | ||
| "github-directory-downloader": "^1.3.6", | ||
| "glob": "12.0.0", | ||
| "lockfile-lint": "^5.0.0", | ||
|
nicodecleyre marked this conversation as resolved.
|
||
| "mocha": "^11.1.0", | ||
| "npm": "^11.18.0", | ||
| "npm-run-all": "^4.1.5", | ||
|
|
@@ -1622,8 +1623,8 @@ | |
| "@pnp/cli-microsoft365-spfx-toolkit": "1.12.0", | ||
| "node-forge": "1.4.0", | ||
| "react-markdown": "10.1.0", | ||
| "rehype-raw": "7.0.0", | ||
| "remark-gfm": "4.0.1", | ||
| "use-debounce": "10.1.1", | ||
| "rehype-raw": "7.0.0" | ||
| "use-debounce": "10.1.1" | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you consider adding
--validate-integrityand--validate-package-namesto the lockfile-lint command? The current flags cover host and protocol validation, but the scenario described in the aim, a lockfile edit that swaps the package hash to a vulnerable repo or package, is specifically caught by--validate-integrity.--validate-package-nameswould additionally cover typosquatting or name mismatches betweenpackage.jsonand the lockfile.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good comment. lets do that π, will do that