Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
bb-npm-bot
Advanced tools
A renovate-like service that works on Bitbucket Server.
npm install -g bb-npm-bot
bb-npm-bot --config=my/path/config.json --token=dXNlcm5hbWU6cGFzc3dvcmQ=
Option | Description | Type | Examples | Default |
---|---|---|---|---|
config | a local or network path for your config file | String | "my/path/config.json" "https://my-custom-server/config.json" | |
token | Your Bitbucket auth token | String | "dXNlcm5hbWU6cGFzc3dvcmQ=" |
npm run docker-build
# the following command assumes env vars BB_CONFIG and BB_TOKEN are set to something like BB_CONFIG=/my/path/config.json and BB_TOKEN=dXNlcm5hbWU6cGFzc3dvcmQ=
npm run docker-run
This is your "config.json" top-level.
{
"endpoint": "https://my-stash-server",
"cachePath": "/override/cache/path",
"user": "my-stash-bot-account",
"repositories": [
// ...
],
"packages": [
"mocha",
// ...
],
"versionHint": "~",
"titleTemplate": "custom {{package}} {{oldRange}} {{newRange}}",
"branchTemplate": "custom_{{package}}_{{oldVersion}}_{{newVersion}}",
"descriptionTemplate": "custom {{package}} {{oldRange}} {{newRange}} {{oldVersion}} {{newVersion}}"
}
This is an item inside the "repositories"
array from above.
{
"project": "my-project",
"name": "my-repo",
"packages": [
"lodash",
// ...
]
}
This is a file called ".bb-npm.js" checked in to the repository.
{
"packages": [
"rimraf",
// ...
]
}
These objects are all merged when determining how to update your project.
Option | Description | Type | Examples | Required | Default |
---|---|---|---|---|---|
endpoint | Your private Stash server | String | "https://my-stash-server" | ✔ | |
cachePath | Provide an alternative cache to clone and update deps | String | "/my/temp/dir" | your OS tmp dir + "bb-npm-bot-cache" | |
user | The user submitting the pull requests. This must match the user from your auth token. | String | "my-bot-account" | ✔ | |
repositories | A list of repositories to watch and their settings | Object | ✔ | ||
packages | A list of packages to watch. Leave blank to watch all. | Array of Strings | "mocha" "lodash" | ||
versionHint | Specify a range. Leave blank to keep the existing range. | String | "" "~" "^" | ||
titleTemplate | Override the title using a template | String | "custom {{package}} {{oldRange}} {{newRange}}" | "{{package}} {{oldRange}} => {{newRange}}" | |
branchTemplate | Override the branch name using a template | String | "custom_{{package}}{{oldVersion}}{{newVersion}}" | "bb/{{package}}_{{newVersion}}" | |
descriptionTemplate | Override the description using a template | String | "custom {{package}} {{oldRange}} {{newRange}} {{oldVersion}} {{newVersion}}" | "test description" | |
project | Name of the project or user. Prefix with "~" if it is a user. | String | "my-project" "~my-user" | ✔ | |
name | Name of the repository | String | "my-repo" | ✔ | |
disabled | Disable processing | Boolean | false |
FAQs
Manage NPM dependencies on Bitbucket
We found that bb-npm-bot demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.