-
-
Notifications
You must be signed in to change notification settings - Fork 25
chore: use pnpm-lock.yaml and minimumReleaseAge
#775
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
Conversation
|
bbcbf73 to
cd665b3
Compare
cd665b3 to
4ffdc4d
Compare
Pull Request Test Coverage Report for Build 18630864983Details
💛 - Coveralls |
Try the Instant Preview in Online PlaygroundInstall the Instant Preview to Your LocalPublished Instant Preview Packages:
|
package.json
Outdated
| }, | ||
| "dependencies": { | ||
| "@typescript-eslint/scope-manager": "^8.46.1", | ||
| "@typescript-eslint/visitor-keys": "^8.46.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.
I don't think we need these dependencies, or we should move them to devDeps, since we're only using them for type checking.
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.
oops, updated: cb88141
|
I'm in favor of using lock files given recent incidents. |
ota-meshi
left a comment
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.
Thank you!
In light of the recent supply chain attacks, I believe that as an OSS provider we have a duty of care to reduce the risk of being caught up in such incidents.
This PR introduces two improvements to address that.
Add
pnpm-lock.yamlCurrently, there is no lock file, which makes it difficult to determine whether we have been affected by a supply chain attack. For example, if a tainted library is pulled in during a GitHub Actions run, it would be necessary to investigate the scope of impact, but doing so is currently very difficult. Introducing a lock file enables us to trace and verify the exact dependency tree at the time of installation.
Add
minimumReleaseAgeBased on past incidents, malicious packages involved in supply chain attacks are often detected and removed from npm within the first 24 hours. To reduce the likelihood of being affected, we will avoid installing packages that were released less than one day ago. However, some packages, such as Svelte, are exempted from this rule.
When we agree this changes, I will make a PR for
eslint-plugin-sveltealso.