Skip to content

Conversation

@nikoferro
Copy link

@nikoferro nikoferro commented May 6, 2024

This PR attempts to bring as close as possible, this controller module to the module-template configuration

  • it includes changes on the CI pipeline
  • yarn update to v4
  • tests files are now passing through the linter (changes and fixes derived from this, included in the PR)

Aside from the usual code review, we need:

This PR should also fix:

#224
#198
#197
#196

@socket-security
Copy link

socket-security bot commented May 6, 2024

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

Package New capabilities Transitives Size Publisher
npm/@babel/[email protected] environment, filesystem, unsafe 0 782 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 493 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 158 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 130 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 14.1 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 10.7 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 49.2 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 650 kB nicolo-ribaudo
npm/@babel/[email protected] environment 0 20.3 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 1.89 MB nicolo-ribaudo
npm/@babel/[email protected] None 0 618 kB nicolo-ribaudo
npm/@babel/[email protected] environment 0 2.41 MB nicolo-ribaudo
npm/@es-joy/[email protected] None 0 71.2 kB brettz9
npm/@esbuild/[email protected] None 0 11.5 MB evanw
npm/@esbuild/[email protected] None 0 9.83 MB evanw
npm/@esbuild/[email protected] None 0 11.5 MB evanw
npm/@esbuild/[email protected] None 0 9.76 MB evanw
npm/@esbuild/[email protected] None 0 10.2 MB evanw
npm/@esbuild/[email protected] None 0 8.85 MB evanw
npm/@esbuild/[email protected] None 0 9.61 MB evanw
npm/@esbuild/[email protected] None 0 9.18 MB evanw
npm/@esbuild/[email protected] None 0 8.85 MB evanw
npm/@esbuild/[email protected] None 0 9.14 MB evanw
npm/@esbuild/[email protected] None 0 9.37 MB evanw
npm/@esbuild/[email protected] None 0 10.4 MB evanw
npm/@esbuild/[email protected] None 0 9.18 MB evanw
npm/@esbuild/[email protected] None 0 9.11 MB evanw
npm/@esbuild/[email protected] None 0 10 MB evanw
npm/@esbuild/[email protected] None 0 9.6 MB evanw
npm/@esbuild/[email protected] None 0 9.59 MB evanw
npm/@esbuild/[email protected] None 0 9.62 MB evanw
npm/@esbuild/[email protected] None 0 9.59 MB evanw
npm/@esbuild/[email protected] None 0 8.98 MB evanw
npm/@esbuild/[email protected] None 0 9.45 MB evanw
npm/@esbuild/[email protected] None 0 9.81 MB evanw
npm/@inquirer/[email protected] None 0 3.75 kB sboudrias
npm/@inquirer/[email protected] None 0 26.7 kB sboudrias
npm/@inquirer/[email protected] None 0 7.33 kB sboudrias
npm/@jest/[email protected] None 0 19.4 kB simenb
npm/@jest/[email protected] unsafe +2 156 kB simenb
npm/@jest/[email protected] None 0 13.2 kB simenb
npm/@jest/[email protected] None 0 25.7 kB simenb
npm/@jest/[email protected] None 0 5.15 kB simenb
npm/@jest/[email protected] None 0 25.2 kB simenb
npm/@jest/[email protected] None 0 3.32 kB simenb
npm/@jest/[email protected] environment, unsafe Transitive: filesystem +1 163 kB simenb
npm/@jest/[email protected] None 0 5.82 kB simenb
npm/@jest/[email protected] None 0 5.08 kB simenb
npm/@jest/[email protected] None 0 15.7 kB simenb
npm/@jest/[email protected] None 0 13.2 kB simenb
npm/@jest/[email protected] Transitive: filesystem +1 63.1 kB simenb
npm/@jest/[email protected] None 0 31.9 kB simenb
npm/@lavamoat/[email protected] None 0 3.25 kB naugtur
npm/@metamask/[email protected] None +1 90 kB gudahtt
npm/@metamask/[email protected] None +11 3.24 MB gudahtt
npm/@metamask/[email protected] None 0 0 B
npm/@npmcli/[email protected] filesystem 0 26.5 kB lukekarrys
npm/@npmcli/[email protected] filesystem 0 21.8 kB npm-cli-ops
npm/@npmcli/[email protected] filesystem 0 37.5 kB npm-cli-ops
npm/@npmcli/[email protected] environment, shell 0 12.2 kB npm-cli-ops
npm/@pkgr/[email protected] None 0 8.54 kB jounqin
npm/@sinclair/[email protected] None 0 306 kB sinclair
npm/@sinonjs/[email protected] None 0 38.7 kB mrgnrdrck
npm/@sinonjs/[email protected] eval 0 91.6 kB fatso83
npm/@types/[email protected] None 0 73.6 kB types
npm/@types/[email protected] None 0 8.2 kB types
npm/@types/[email protected] None 0 1.8 MB types
npm/@types/[email protected] None 0 2.95 kB types
npm/@types/[email protected] None 0 49.8 kB types
npm/@vue/[email protected] environment, eval 0 604 kB yyx990803
npm/@vue/[email protected] environment, eval 0 611 kB yyx990803
npm/@vue/[email protected] environment, eval, filesystem, unsafe 0 2.28 MB yyx990803
npm/@vue/[email protected] None 0 46.6 kB yyx990803
npm/@vue/[email protected] environment 0 80.6 kB yyx990803
npm/@yarnpkg/[email protected] None 0 8.8 kB yarnbot
npm/[email protected] environment 0 26.1 kB jonschlinkert
npm/[email protected] None 0 21.9 kB bmealey
npm/[email protected] None 0 22.2 kB kevinbeaty
npm/[email protected] filesystem 0 1.46 MB ldthomas
npm/[email protected] None 0 3.06 kB sindresorhus
npm/[email protected] None 0 3.19 kB sindresorhus
npm/[email protected] environment 0 14.5 kB simenb
npm/[email protected] None 0 13.7 kB simenb
npm/[email protected] None 0 2.73 kB simenb
npm/[email protected] None 0 5.03 kB sindresorhus
npm/[email protected] environment, filesystem, unsafe 0 25.3 kB egoist
npm/[email protected] None 0 81.8 kB egoist
npm/[email protected] filesystem 0 63.5 kB npm-cli-ops
npm/[email protected] None 0 1.47 kB tjholowaychuk
npm/[email protected] None 0 2.05 MB caniuse-lite
npm/[email protected] environment, filesystem +1 102 kB paulmillr
npm/[email protected] None 0 139 kB guybedford
npm/[email protected] None 0 32.1 kB sindresorhus
npm/[email protected] environment 0 11.5 kB knownasilya
npm/[email protected] None 0 30.6 kB oss-bot
npm/[email protected] filesystem 0 12.2 kB npm-cli-ops
npm/[email protected] environment, filesystem, shell 0 173 kB abetomo
npm/[email protected] filesystem 0 11.4 kB thlorenz
npm/[email protected] filesystem 0 92 kB d-fischer
npm/[email protected] None 0 4.85 kB dmnd
npm/[email protected] filesystem, unsafe Transitive: environment +1 517 kB rumpl
npm/[email protected] None 0 6.82 kB mathieudutour
npm/[email protected] filesystem 0 8.63 kB doowb
npm/[email protected] None 0 9.75 kB sindresorhus
npm/[email protected] None 0 46 kB simenb
npm/[email protected] None 0 287 kB kilianvalkhof
npm/[email protected] None 0 44.4 kB sindresorhus
npm/[email protected] environment, filesystem, network, shell +1 10.5 MB evanw
npm/[email protected] None +1 1.63 MB gajus
npm/[email protected] None 0 50.2 kB rich_harris
npm/[email protected] None +1 35.3 kB gudahtt
npm/[email protected] None 0 6.59 kB doowb
npm/[email protected] None 0 143 kB simenb
npm/[email protected] filesystem 0 6.63 kB phated
npm/[email protected] None 0 4.54 kB sindresorhus
npm/[email protected] None 0 5.57 kB fisker
npm/[email protected] None 0 6.52 kB jonschlinkert
npm/[email protected] environment, filesystem +1 18 kB phated
npm/[email protected] None 0 23.7 kB ljharb
npm/[email protected] environment, filesystem 0 8.05 kB doowb
npm/[email protected] None 0 26.6 kB npm-cli-ops
npm/[email protected] None 0 9.3 kB isaacs
npm/[email protected] None 0 3.08 kB sindresorhus
npm/[email protected] None 0 4.08 kB sindresorhus
npm/[email protected] None 0 7.96 kB jonschlinkert
npm/[email protected] environment 0 13.8 kB simenb
npm/[email protected] None 0 69.3 kB simenb
npm/[email protected] None 0 44.7 kB simenb
npm/[email protected] None 0 106 kB simenb
npm/[email protected] None 0 78.6 kB simenb
npm/[email protected] None 0 9.11 kB simenb
npm/[email protected] None 0 38 kB simenb
npm/[email protected] unsafe 0 8.57 kB simenb
npm/[email protected] None 0 3.85 kB simenb
npm/[email protected] environment, filesystem, shell, unsafe 0 128 kB simenb
npm/[email protected] filesystem 0 9.35 kB rbardini
npm/[email protected] unsafe 0 6.53 kB simenb
npm/[email protected] None 0 27.8 kB simenb
npm/[email protected] None 0 17 kB simenb
npm/[email protected] None 0 42 kB simenb
npm/[email protected] None 0 3.59 kB simenb
npm/[email protected] None 0 8.93 kB simenb
npm/[email protected] environment, unsafe 0 63.2 kB simenb
npm/[email protected] environment 0 31.5 kB simenb
npm/[email protected] unsafe 0 85.3 kB simenb
npm/[email protected] eval 0 81.8 kB simenb
npm/[email protected] environment 0 35.8 kB simenb
npm/[email protected] None 0 28.2 kB simenb
npm/[email protected] None 0 23.9 kB simenb
npm/[email protected] environment, shell +1 77.6 kB simenb
npm/[email protected] None 0 5.06 kB simenb
npm/[email protected] environment, filesystem 0 14 kB egoist
npm/[email protected] None 0 229 kB jsdoc-type-pratt-parser
npm/[email protected] None 0 9.94 kB npm-cli-ops
npm/[email protected] None 0 210 kB vscode-bot
npm/[email protected] filesystem 0 17.7 kB antonk52
npm/[email protected] None 0 17.1 kB egoist
npm/[email protected] None 0 75.8 kB jdalton
npm/[email protected] None 0 681 kB isaacs
npm/[email protected] None 0 976 kB olivernn
npm/[email protected] None 0 452 kB antfu
npm/[email protected] network 0 52.8 kB npm-cli-ops
npm/[email protected] None 0 428 kB tonybrix
npm/[email protected] environment +1 380 kB isaacs
npm/[email protected] environment, network 0 46.8 kB npm-cli-ops
npm/[email protected] None 0 285 kB isaacs
npm/[email protected] None 0 6.03 kB sindresorhus
npm/[email protected] None 0 6.51 kB isaacs
npm/[email protected] filesystem, network, shell 0 9.77 kB jongleberry
npm/[email protected] None 0 24.4 kB ai
npm/[email protected] environment, filesystem 0 13.4 kB mafintosh
npm/[email protected] None 0 26.2 kB npm-cli-ops
npm/[email protected] None 0 28.2 kB npm-cli-ops
npm/[email protected] None 0 16.3 kB npm-cli-ops
npm/[email protected] None 0 5.49 kB sindresorhus
npm/[email protected] None 0 50.2 kB gkz
npm/[email protected] None 0 5.96 kB doowb
npm/[email protected] None 0 5.54 kB typicode
npm/[email protected] environment, unsafe +1 693 kB ai
npm/[email protected] environment, filesystem 0 198 kB ai
npm/[email protected] None 0 5.55 kB matzkoh
npm/[email protected] None +1 77.7 kB simenb
npm/[email protected] environment 0 24 kB react-bot
npm/[email protected] filesystem 0 20.5 kB paulmillr
npm/[email protected] None 0 3.74 kB mattdesl
npm/[email protected] None 0 6.29 kB phated
npm/[email protected] None 0 20.9 kB lukeed
npm/[email protected] environment, filesystem +17 46.7 MB lukastaegert
npm/[email protected] None 0 6.6 kB sboudrias
npm/[email protected] None 0 4.05 kB substack
npm/[email protected] filesystem, network 0 15.7 MB antfu
npm/[email protected] None 0 2.69 kB keithamus
npm/[email protected] None +3 64.6 kB keithamus
npm/[email protected] None 0 140 kB 7rulnik
npm/[email protected] None 0 38.7 kB npm-cli-ops
npm/[email protected] Transitive: filesystem, shell +1 1.23 MB alangpierce
npm/[email protected] None 0 6.93 kB sindresorhus
npm/[email protected] environment 0 54.4 kB jounqin
npm/[email protected] None 0 6.52 kB sindresorhus
npm/[email protected] None 0 6.59 kB dead_horse
npm/[email protected] None 0 7.92 kB dead_horse
npm/[email protected] None +1 145 kB ccasey
npm/[email protected] None 0 322 kB sebmaster
npm/[email protected] shell 0 7.82 kB wmhilton
npm/[email protected] None 0 68 kB dsagal2
npm/[email protected] environment, filesystem, unsafe 0 263 kB kul
npm/[email protected] environment, eval, filesystem +2 761 kB egoist
npm/[email protected] None 0 8.14 kB dchest
npm/[email protected] None 0 175 kB dchest
npm/[email protected] environment, filesystem, shell, unsafe 0 1.08 MB typedoc-bot
npm/[email protected] None 0 68.8 MB typescript-bot
npm/[email protected] environment 0 14.3 kB ai
npm/[email protected] unsafe 0 7.77 kB npm-cli-ops
npm/[email protected] network 0 490 kB vscode-bot
npm/[email protected] None 0 347 kB vscode-bot
npm/[email protected] None 0 398 kB luu-alex
npm/[email protected] None 0 1.35 MB luu-alex
npm/[email protected] None 0 398 kB luu-alex
npm/[email protected] None +1 1.3 MB luu-alex
npm/[email protected] Transitive: environment, network +3 2.95 MB lgbot
npm/[email protected] None 0 300 kB luu-alex
npm/[email protected] None 0 523 kB luu-alex
npm/[email protected] None 0 3.3 MB luu-alex
npm/[email protected] None 0 19.3 kB domenic
npm/[email protected] None 0 11.8 kB jonschlinkert
npm/[email protected] environment 0 448 kB eemeli
npm/[email protected] environment, filesystem 0 124 kB oss-bot
npm/[email protected] None 0 666 kB colinmcd94

🚮 Removed packages: npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@babel/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected]

View full report↗︎

@socket-security
Copy link

socket-security bot commented May 6, 2024

🚨 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
Shell access npm/[email protected]
New author npm/[email protected]
Shell access npm/[email protected]
New author npm/[email protected]
Shell access npm/[email protected]
Network access npm/[email protected]
Shell access npm/[email protected]
New author npm/[email protected]
New author npm/[email protected]
New author npm/[email protected]
New author npm/[email protected]
New author npm/[email protected]
Network access npm/[email protected]
Shell access npm/[email protected]
Install scripts npm/@lavamoat/[email protected]
  • Install script: preinstall
  • Source: echo "Don't run npm lifecycle scripts by default! Create a .yarnrc or .npmrc and set enableScripts: false. Then, whitelist them with @lavamoat/allow-scripts" && exit 1
Network access npm/[email protected]
Deprecated npm/[email protected]
  • Reason: Breaking node 16
Network access npm/[email protected]
New author npm/[email protected]
Network access npm/[email protected]
Shell access npm/[email protected]
Network access npm/[email protected]
Install scripts npm/[email protected]
New author npm/[email protected]
Unstable ownership npm/[email protected]

View full report↗︎

Next steps

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 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 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 an install script?

Install scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.

Packages should not be running non-essential scripts during install and there are often solutions to problems people solve with install scripts that can be run at publish time instead.

What is a deprecated package?

The maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.

Research the state of the package and determine if there are non-deprecated versions that can be used, or if it should be replaced with a new, supported solution.

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/[email protected] or ignore all packages with @SocketSecurity ignore-all

@nikoferro nikoferro changed the title CI + Yarn update feat: Github Actions + Yarn update May 8, 2024
@nikoferro nikoferro marked this pull request as ready for review May 8, 2024 13:00
@nikoferro nikoferro requested review from a team, Gudahtt and legobeat May 8, 2024 13:00
@legobeat
Copy link
Contributor

legobeat commented May 8, 2024

It would be great if the yarn v4 upgrade could be separated into a individual PR separate from the rest of the changes in this PR that aren't required for that.

It would certainly help reviewing dependency changes incurred by the yarn.lock upgrade to have them separate from dependencies updated or added for other reasons.

I also see linting changes here. If linting is required as a consequence of upgrading a package (like eslint config), that would also be good to have broken out as independent change.

Copy link
Contributor

@legobeat legobeat May 9, 2024

Choose a reason for hiding this comment

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

Checking in the yarn binary is not recommended anymore and I think there is no need introducing it. See:

Comment on lines +65 to +87
"@types/jest": "^28.1.6",
"@types/node": "^16",
"@typescript-eslint/eslint-plugin": "^5.43.0",
"@typescript-eslint/parser": "^5.43.0",
"@yarnpkg/types": "^4.0.0-rc.52",
"depcheck": "^1.4.3",
"eslint": "^8.44.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "~2.26.0",
"eslint-plugin-jest": "^27.6.0",
"eslint-plugin-jsdoc": "^43.0.7",
"eslint-plugin-jest": "^27.2.2",
"eslint-plugin-jsdoc": "^39.9.1",
"eslint-plugin-n": "^15.7.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-promise": "^6.1.1",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"prettier": "^2.2.1",
"rimraf": "^3.0.2",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"typescript": "^5.1.0"
"jest": "^28.1.3",
"jest-it-up": "^2.0.2",
"prettier": "^2.7.1",
"prettier-plugin-packagejson": "^2.3.0",
"ts-jest": "^28.0.7",
"ts-node": "^10.7.0",
"tsup": "^7.2.0",
"typedoc": "^0.23.15",
"typescript": "~4.8.4"
Copy link
Contributor

Choose a reason for hiding this comment

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

Are all of the downgrades happening here intentional?

@nikoferro
Copy link
Author

nikoferro commented May 22, 2024

closed as this is not doable this way at the moment. CI is being upgraded on #237

@legobeat i might come back to this PR at a later stage, but as of now, i think this one is adding extra noise to the updates we are currently working on

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.

3 participants