
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@voiceflow/circleci-config-sdk-orb-import
Advanced tools
A lightweight utility to import orbs for use with the CircleCI Config SDK
This package allows you to import and use external orbs with the CircleCI Config SDK.
Using npm:
npm install @voiceflow/circleci-config-sdk-orb-import
Using yarn:
yarn add @voiceflow/circleci-config-sdk-orb-import
This package provides a single function, importOrb
, to fetch the manifest for an external orb and return them as an OrbImport
compatible with the CircleCI Config SDK.
import * as CircleCI from "@circleci/circleci-config-sdk";
import { importOrb } from "circleci-config-sdk-orb-import";
// Instantiate a new Config
const config = new CircleCI.Config();
// Use the importOrb function to fetch a given external orb
// This is equivalent to putting `node: circleci/node@5.0.3` in the `.circleci/config.yml` file
const node = await importOrb({
alias: "node",
namespace: "circleci",
orb: "node",
version: "5.0.3",
});
// Add the imported orb to the generated config
config.importOrb(node);
// Use an executor from the orb in your jobs
const exampleExecutor = new CircleCI.reusable.ReusedExecutor(
node.executors["default"],
{
tag: "16",
}
);
const exampleJob = new CircleCI.Job("install-node", exampleExecutor, [
new CircleCI.commands.Checkout(),
// Use a command from the orb in your jobs
new CircleCI.reusable.ReusedCommand(node.commands["install-packages"], {
"check-cache": "always",
"pkg-manager": "yarn-berry",
}),
]);
config.addJob(exampleJob);
const exampleWorkflow = new CircleCI.Workflow("example", [
exampleJob,
// Use a job from the orb in your workflows
new CircleCI.workflow.WorkflowJob(node.jobs["run"], {
"yarn-run": "build",
}),
]);
config.addWorkflow(exampleWorkflow);
The above config generates the following YAML config:
version: 2.1
setup: false
jobs:
install-node:
executor:
name: node/default
tag: "16"
steps:
- checkout
- node/install-packages:
check-cache: always
pkg-manager: yarn-berry
workflows:
example:
jobs:
- install-node
- node/run:
yarn-run: build
orbs:
node: circleci/node@5.0.3
This version has been tested with version 0.10.1
of the CircleCI Config SDK. Compatibility with other versions cannot be guaranteed.
Licensed under ISC
FAQs
A lightweight utility to import orbs for use with the CircleCI Config SDK
The npm package @voiceflow/circleci-config-sdk-orb-import receives a total of 169 weekly downloads. As such, @voiceflow/circleci-config-sdk-orb-import popularity was classified as not popular.
We found that @voiceflow/circleci-config-sdk-orb-import demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 26 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.