Skip to content

Autoinstall adaptor with minReleaseAge #1345

@josephjclark

Description

@josephjclark

When installing adaptors through the CLI or Worker, npm will install dependencies according to semver resolution

This gives rise to an attack vector form the supply chain, which we're seeing more and more of

Our own repos are protected with pnpm's mimimumReleaseAge. But that doesn't affect the adaptor package versions themselves, or the way we install dependencies in the worker.

But npm does have a min-release-age https://docs.npmjs.com/cli/v11/commands/npm-install#min-release-age

We should be using this on install to ensure that workflow runs are more secure

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions