Skip to content
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

Add Yarn and lockfile #3

Merged
merged 3 commits into from
Feb 29, 2024
Merged

Add Yarn and lockfile #3

merged 3 commits into from
Feb 29, 2024

Conversation

Mrtenz
Copy link
Member

@Mrtenz Mrtenz commented Feb 29, 2024

This adds Yarn v4, yarn.lock, and some other miscellaneous files from the module template.

Since Yarn v4 requires Node 18+, I've also added a .nvmrc and updated CI to match this.

Copy link

New dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@isaacs/cliui@8.0.2 None +12 254 kB isaacs
npm/@lavamoat/aa@4.1.0 Transitive: environment, filesystem +6 251 kB lgbot
npm/@lavamoat/allow-scripts@3.0.3 environment, filesystem, shell Transitive: network +123 8.09 MB lgbot
npm/@npmcli/agent@2.2.1 environment, network +12 1.19 MB npm-cli-ops
npm/@npmcli/fs@3.1.0 filesystem +1 121 kB lukekarrys
npm/@npmcli/git@5.0.4 filesystem Transitive: environment, shell +17 788 kB npm-cli-ops
npm/@npmcli/node-gyp@3.0.0 filesystem 0 1.87 kB lukekarrys
npm/@npmcli/package-json@5.0.0 filesystem Transitive: environment, shell +57 3.5 MB npm-cli-ops
npm/@npmcli/promise-spawn@7.0.1 environment, shell Transitive: filesystem +2 62.5 kB npm-cli-ops
npm/@npmcli/run-script@7.0.4 environment Transitive: filesystem, network, shell +107 7.31 MB npm-cli-ops
npm/@pkgjs/parseargs@0.11.0 None 0 74.2 kB oss-bot
npm/abbrev@2.0.0 None 0 4.83 kB lukekarrys
npm/agent-base@7.1.0 network Transitive: environment +2 72.7 kB tootallnate
npm/ansi-regex@6.0.1 None 0 5.67 kB qix
npm/bin-links@4.0.3 filesystem +6 142 kB npm-cli-ops
npm/builtins@5.0.1 None +1 98 kB juliangruber
npm/cacache@18.0.2 filesystem Transitive: environment, shell +51 3.59 MB npm-cli-ops
npm/chownr@2.0.0 filesystem 0 5.75 kB isaacs
npm/cmd-shim@6.0.2 filesystem 0 12.1 kB npm-cli-ops
npm/eastasianwidth@0.2.0 None 0 13.6 kB komagata
npm/encoding@0.1.13 None +2 398 kB andris
npm/env-paths@2.2.1 None 0 10.2 kB sindresorhus
npm/err-code@2.0.3 None 0 12.3 kB achingbrain
npm/exponential-backoff@3.1.1 None 0 37.3 kB sssayegh
npm/foreground-child@3.1.1 shell Transitive: environment, filesystem +7 189 kB isaacs
npm/fs-minipass@3.0.3 filesystem +1 299 kB npm-cli-ops
npm/glob@10.3.10 Transitive: environment, filesystem, shell +29 2.95 MB isaacs
npm/hosted-git-info@7.0.1 None +1 485 kB npm-cli-ops
npm/http-proxy-agent@7.0.2 network Transitive: environment +3 96 kB tootallnate
npm/https-proxy-agent@7.0.4 network Transitive: environment +3 108 kB tootallnate
npm/iconv-lite@0.6.3 None +1 391 kB ashtuchkin
npm/ip-address@9.0.5 None +2 264 kB beaugunderson
npm/is-lambda@1.0.1 None 0 2.94 kB watson
npm/jackspeak@2.3.6 environment +14 581 kB isaacs
npm/jsbn@1.1.0 None 0 46.9 kB andyperlitch
npm/json-parse-even-better-errors@3.0.1 None 0 9.87 kB npm-cli-ops
npm/lru-cache@10.2.0 None 0 458 kB isaacs
npm/make-fetch-happen@13.0.0 network Transitive: environment, filesystem, shell +75 5.07 MB npm-cli-ops
npm/minipass-collect@2.0.1 None +1 290 kB isaacs
npm/minipass-fetch@3.0.4 environment, network +6 871 kB npm-cli-ops
npm/minipass-flush@1.0.5 None +1 51.9 kB isaacs
npm/minipass-pipeline@1.2.4 None +1 21.8 kB isaacs
npm/minipass-sized@1.0.3 None 0 124 kB isaacs
npm/minipass@7.0.4 None 0 285 kB isaacs
npm/minizlib@2.1.2 None 0 17.3 kB isaacs
npm/mkdirp@1.0.4 environment, filesystem 0 19.1 kB isaacs
npm/negotiator@0.6.3 None 0 27.4 kB dougwilson
npm/node-gyp@10.0.1 environment, shell Transitive: filesystem, network +84 6.96 MB lukekarrys
npm/nopt@7.2.0 None +1 31 kB npm-cli-ops
npm/normalize-package-data@6.0.0 None +11 748 kB npm-cli-ops
npm/npm-install-checks@6.3.0 None +1 100 kB npm-cli-ops
npm/npm-normalize-package-bin@3.0.1 None 0 3.58 kB npm-cli-ops
npm/npm-package-arg@11.0.1 None +6 615 kB npm-cli-ops
npm/npm-pick-manifest@9.0.0 None +9 641 kB npm-cli-ops
npm/path-scurry@1.10.1 filesystem +2 1.27 MB isaacs
npm/proc-log@3.0.0 None 0 5.21 kB lukekarrys
npm/promise-inflight@1.0.1 None 0 3.04 kB iarna
npm/promise-retry@2.0.1 None +2 60 kB achingbrain
npm/read-cmd-shim@4.0.0 filesystem 0 5.16 kB lukekarrys
npm/retry@0.12.0 None 0 32.2 kB tim-kos
npm/smart-buffer@4.2.0 None 0 138 kB joshglazebrook
npm/socks-proxy-agent@8.0.2 network Transitive: environment +8 655 kB tootallnate
npm/socks@2.8.1 network +4 558 kB joshglazebrook
npm/ssri@10.0.5 None +1 323 kB npm-cli-ops
npm/string-width@5.1.2 None +4 127 kB sindresorhus
npm/tar@6.2.0 environment, filesystem +5 291 kB isaacs
npm/undici-types@5.26.5 None 0 73.1 kB ethan_arrowood
npm/unique-filename@3.0.0 None +2 17.9 kB lukekarrys
npm/unique-slug@4.0.0 None +1 14.5 kB lukekarrys
npm/which@4.0.0 environment Transitive: filesystem +1 50.5 kB npm-cli-ops
npm/wrap-ansi@8.1.0 None +6 157 kB sindresorhus
npm/write-file-atomic@5.0.1 filesystem +2 101 kB npm-cli-ops

View full report↗︎

Copy link

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSource
Network access npm/agent-base@7.1.0
Network access npm/agent-base@7.1.0
New author npm/validate-npm-package-name@5.0.0
Shell access npm/foreground-child@3.1.1
Shell access npm/foreground-child@3.1.1
New author npm/npm-normalize-package-bin@3.0.1
New author npm/nopt@7.2.0
New author npm/abbrev@2.0.0
New author npm/write-file-atomic@5.0.1
New author npm/exponential-backoff@3.1.1
Network access npm/make-fetch-happen@13.0.0
Network access npm/make-fetch-happen@13.0.0
Network access npm/make-fetch-happen@13.0.0
Network access npm/minipass-fetch@3.0.4
Network access npm/minipass-fetch@3.0.4
Network access npm/minipass-fetch@3.0.4
New author npm/normalize-package-data@6.0.0
New author npm/@npmcli/node-gyp@3.0.0
New author npm/read-cmd-shim@4.0.0
Network access npm/socks-proxy-agent@8.0.2
Network access npm/socks-proxy-agent@8.0.2
Network access npm/socks-proxy-agent@8.0.2
New author npm/cmd-shim@6.0.2
Shell access npm/node-gyp@10.0.1
New author npm/json-parse-even-better-errors@3.0.1
Shell access npm/@npmcli/promise-spawn@7.0.1
Network access npm/@npmcli/agent@2.2.1
Network access npm/@npmcli/agent@2.2.1
Network access npm/@npmcli/agent@2.2.1
Network access npm/@npmcli/agent@2.2.1
Network access npm/@npmcli/agent@2.2.1
Network access npm/https-proxy-agent@7.0.4
Network access npm/https-proxy-agent@7.0.4
Network access npm/http-proxy-agent@7.0.2
Network access npm/http-proxy-agent@7.0.2
Network access npm/socks@2.8.1
Shell access npm/@lavamoat/allow-scripts@3.0.3
New author npm/@lavamoat/aa@4.1.0
Unstable ownership npm/@lavamoat/aa@4.1.0

View full report↗︎

Next steps

What is network access?

This module accesses the network.

Packages should remove all network access that is functionally unnecessary. Consumers should audit network access to ensure legitimate use.

What is new author?

A new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.

Scrutinize new collaborator additions to packages because they now have the ability to publish code into your dependency tree. Packages should avoid frequent or unnecessary additions or changes to publishing rights.

What is shell access?

This module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.

Packages should avoid accessing the shell which can reduce portability, and make it easier for malicious shell access to be introduced.

What is unstable ownership?

A new collaborator has begun publishing package versions. Package stability and security risk may be elevated.

Try to reduce the amount of authors you depend on to reduce the risk to malicious actors gaining access to your supply chain. Packages should remove inactive collaborators with publishing rights from packages on npm.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/foo@1.0.0 or ignore all packages with @SocketSecurity ignore-all

  • @SocketSecurity ignore npm/agent-base@7.1.0
  • @SocketSecurity ignore npm/validate-npm-package-name@5.0.0
  • @SocketSecurity ignore npm/foreground-child@3.1.1
  • @SocketSecurity ignore npm/npm-normalize-package-bin@3.0.1
  • @SocketSecurity ignore npm/nopt@7.2.0
  • @SocketSecurity ignore npm/abbrev@2.0.0
  • @SocketSecurity ignore npm/write-file-atomic@5.0.1
  • @SocketSecurity ignore npm/exponential-backoff@3.1.1
  • @SocketSecurity ignore npm/make-fetch-happen@13.0.0
  • @SocketSecurity ignore npm/minipass-fetch@3.0.4
  • @SocketSecurity ignore npm/normalize-package-data@6.0.0
  • @SocketSecurity ignore npm/@npmcli/node-gyp@3.0.0
  • @SocketSecurity ignore npm/read-cmd-shim@4.0.0
  • @SocketSecurity ignore npm/socks-proxy-agent@8.0.2
  • @SocketSecurity ignore npm/cmd-shim@6.0.2
  • @SocketSecurity ignore npm/node-gyp@10.0.1
  • @SocketSecurity ignore npm/json-parse-even-better-errors@3.0.1
  • @SocketSecurity ignore npm/@npmcli/promise-spawn@7.0.1
  • @SocketSecurity ignore npm/@npmcli/agent@2.2.1
  • @SocketSecurity ignore npm/https-proxy-agent@7.0.4
  • @SocketSecurity ignore npm/http-proxy-agent@7.0.2
  • @SocketSecurity ignore npm/socks@2.8.1
  • @SocketSecurity ignore npm/@lavamoat/allow-scripts@3.0.3
  • @SocketSecurity ignore npm/@lavamoat/aa@4.1.0

@Mrtenz Mrtenz mentioned this pull request Feb 29, 2024
Copy link

@mcmire mcmire left a comment

Choose a reason for hiding this comment

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

Looks good!

@Mrtenz Mrtenz merged commit 3c9d6b0 into main Feb 29, 2024
7 of 8 checks passed
@Mrtenz Mrtenz deleted the mrtenz/yarn branch February 29, 2024 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants