Skip to content

Add Yarn and lockfile - #3

Merged
Mrtenz merged 3 commits into
mainfrom
mrtenz/yarn
Feb 29, 2024
Merged

Add Yarn and lockfile#3
Mrtenz merged 3 commits into
mainfrom
mrtenz/yarn

Conversation

@Mrtenz

@MrtenzMrtenz commented Feb 29, 2024

Copy link
Copy Markdown
Member

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.

@socket-security

Copy link
Copy Markdown

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

PackageNew capabilitiesTransitivesSizePublisher
npm/@isaacs/cliui@8.0.2None+12254 kBisaacs
npm/@lavamoat/aa@4.1.0Transitive: environment, filesystem+6251 kBlgbot
npm/@lavamoat/allow-scripts@3.0.3environment, filesystem, shell Transitive: network+1238.09 MBlgbot
npm/@npmcli/agent@2.2.1environment, network+121.19 MBnpm-cli-ops
npm/@npmcli/fs@3.1.0filesystem+1121 kBlukekarrys
npm/@npmcli/git@5.0.4filesystem Transitive: environment, shell+17788 kBnpm-cli-ops
npm/@npmcli/node-gyp@3.0.0filesystem01.87 kBlukekarrys
npm/@npmcli/package-json@5.0.0filesystem Transitive: environment, shell+573.5 MBnpm-cli-ops
npm/@npmcli/promise-spawn@7.0.1environment, shell Transitive: filesystem+262.5 kBnpm-cli-ops
npm/@npmcli/run-script@7.0.4environment Transitive: filesystem, network, shell+1077.31 MBnpm-cli-ops
npm/@pkgjs/parseargs@0.11.0None074.2 kBoss-bot
npm/abbrev@2.0.0None04.83 kBlukekarrys
npm/agent-base@7.1.0network Transitive: environment+272.7 kBtootallnate
npm/ansi-regex@6.0.1None05.67 kBqix
npm/bin-links@4.0.3filesystem+6142 kBnpm-cli-ops
npm/builtins@5.0.1None+198 kBjuliangruber
npm/cacache@18.0.2filesystem Transitive: environment, shell+513.59 MBnpm-cli-ops
npm/chownr@2.0.0filesystem05.75 kBisaacs
npm/cmd-shim@6.0.2filesystem012.1 kBnpm-cli-ops
npm/eastasianwidth@0.2.0None013.6 kBkomagata
npm/encoding@0.1.13None+2398 kBandris
npm/env-paths@2.2.1None010.2 kBsindresorhus
npm/err-code@2.0.3None012.3 kBachingbrain
npm/exponential-backoff@3.1.1None037.3 kBsssayegh
npm/foreground-child@3.1.1shell Transitive: environment, filesystem+7189 kBisaacs
npm/fs-minipass@3.0.3filesystem+1299 kBnpm-cli-ops
npm/glob@10.3.10Transitive: environment, filesystem, shell+292.95 MBisaacs
npm/hosted-git-info@7.0.1None+1485 kBnpm-cli-ops
npm/http-proxy-agent@7.0.2network Transitive: environment+396 kBtootallnate
npm/https-proxy-agent@7.0.4network Transitive: environment+3108 kBtootallnate
npm/iconv-lite@0.6.3None+1391 kBashtuchkin
npm/ip-address@9.0.5None+2264 kBbeaugunderson
npm/is-lambda@1.0.1None02.94 kBwatson
npm/jackspeak@2.3.6environment+14581 kBisaacs
npm/jsbn@1.1.0None046.9 kBandyperlitch
npm/json-parse-even-better-errors@3.0.1None09.87 kBnpm-cli-ops
npm/lru-cache@10.2.0None0458 kBisaacs
npm/make-fetch-happen@13.0.0network Transitive: environment, filesystem, shell+755.07 MBnpm-cli-ops
npm/minipass-collect@2.0.1None+1290 kBisaacs
npm/minipass-fetch@3.0.4environment, network+6871 kBnpm-cli-ops
npm/minipass-flush@1.0.5None+151.9 kBisaacs
npm/minipass-pipeline@1.2.4None+121.8 kBisaacs
npm/minipass-sized@1.0.3None0124 kBisaacs
npm/minipass@7.0.4None0285 kBisaacs
npm/minizlib@2.1.2None017.3 kBisaacs
npm/mkdirp@1.0.4environment, filesystem019.1 kBisaacs
npm/negotiator@0.6.3None027.4 kBdougwilson
npm/node-gyp@10.0.1environment, shell Transitive: filesystem, network+846.96 MBlukekarrys
npm/nopt@7.2.0None+131 kBnpm-cli-ops
npm/normalize-package-data@6.0.0None+11748 kBnpm-cli-ops
npm/npm-install-checks@6.3.0None+1100 kBnpm-cli-ops
npm/npm-normalize-package-bin@3.0.1None03.58 kBnpm-cli-ops
npm/npm-package-arg@11.0.1None+6615 kBnpm-cli-ops
npm/npm-pick-manifest@9.0.0None+9641 kBnpm-cli-ops
npm/path-scurry@1.10.1filesystem+21.27 MBisaacs
npm/proc-log@3.0.0None05.21 kBlukekarrys
npm/promise-inflight@1.0.1None03.04 kBiarna
npm/promise-retry@2.0.1None+260 kBachingbrain
npm/read-cmd-shim@4.0.0filesystem05.16 kBlukekarrys
npm/retry@0.12.0None032.2 kBtim-kos
npm/smart-buffer@4.2.0None0138 kBjoshglazebrook
npm/socks-proxy-agent@8.0.2network Transitive: environment+8655 kBtootallnate
npm/socks@2.8.1network+4558 kBjoshglazebrook
npm/ssri@10.0.5None+1323 kBnpm-cli-ops
npm/string-width@5.1.2None+4127 kBsindresorhus
npm/tar@6.2.0environment, filesystem+5291 kBisaacs
npm/undici-types@5.26.5None073.1 kBethan_arrowood
npm/unique-filename@3.0.0None+217.9 kBlukekarrys
npm/unique-slug@4.0.0None+114.5 kBlukekarrys
npm/which@4.0.0environment Transitive: filesystem+150.5 kBnpm-cli-ops
npm/wrap-ansi@8.1.0None+6157 kBsindresorhus
npm/write-file-atomic@5.0.1filesystem+2101 kBnpm-cli-ops

View full report↗︎

@socket-security

Copy link
Copy Markdown

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

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

AlertPackageNoteSource
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

@MrtenzMrtenz mentioned this pull request Feb 29, 2024

@mcmiremcmire left a comment

Copy link
Copy Markdown

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 mainFeb 29, 2024
@Mrtenz
Mrtenz deleted the mrtenz/yarn branch February 29, 2024 22:23
Sign up for freeto 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

@Mrtenz@mcmire