Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Check dependency licenses against rules.
Create a .licensee.json
file at the root of your package. Here is an example.
{ "license": "(MIT OR BSD-2-Clause OR BSD-3-Clause OR ISC OR Apache-2.0)",
"whitelist": {
"optimist": "<=0.6.1" } }
The license
property is an SPDX license expression that
spdx-expression-parse can parse. Any package with standard
license metadata that satisfies the SPDX license expression
according to spdx-satisfies will not cause an error.
The whitelist
is a map from package name to a node-semver
Semantic Versioning range. Packages whose license metadata don't match
the SPDX license expression in license
but have a name and version
described in whitelist
will not cause an error.
To install and use licensee
globally:
npm install --global licensee
cd your-package
licensee
The licensee
script will exit with status 0
when all packages in
./node_modules
meet the configured licensing criteria and 1
when
one or more do not.
To install it as a development dependency of your package:
cd your-package
npm install --save-dev licensee
Consider adding licensee
to your npm scripts:
{ "scripts": {
"test": "...",
"posttest": "licensee" } }
The package exports an asynchronous function of three arguments:
A configuration object in the same form as .licensee.json
.
The path of the package to check.
An error-first callback that yields an array of objects describing licensing issues.
FAQs
check dependency licenses against rules
The npm package licensee receives a total of 4,518 weekly downloads. As such, licensee popularity was classified as popular.
We found that licensee demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.