Remove package lock from git ignore #16

Closed
StoneCypher wants to merge 3 commits from RemovePackageLockFromGitIgnore into main
StoneCypher commented 2022-09-18 20:05:33 +02:00 (Migrated from github.com)

Your tooling is excellent

One small point: package-lock should be in the repo, for three reasons.

  1. This is how supply chain attacks can be investigated and prevented
  2. A ci/cd path needs package.lock to do its installs; otherwise if it creates one on the spot it's not testing code as committed, but code as would have been created at any given time, and is subject to library drift
  3. Several code scanners eg snyk treat it as positive signal and rank upwards for it

This PR removes package-lock from .gitignore. A subsequent PR will add an actual package lockfile, so that if you decide you want to do that yourself you can merge this, but if you don't want to be bothered you can just merge both.

Fixes codemirror/lang-example#15 (identical text)

Your tooling is excellent One small point: package-lock should be in the repo, for three reasons. 1. This is how supply chain attacks can be investigated and prevented 2. A ci/cd path needs package.lock to do its installs; otherwise if it creates one on the spot it's not testing code as committed, but code as would have been created at any given time, and is subject to library drift 3. Several code scanners eg snyk treat it as positive signal and rank upwards for it This PR removes package-lock from .gitignore. A subsequent PR will add an actual package lockfile, so that if you decide you want to do that yourself you can merge this, but if you don't want to be bothered you can just merge both. Fixes codemirror/lang-example#15 (identical text)

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
codemirror/lang-example!16
No description provided.