
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
@inlang/cross-sell-ninja
Advanced tools
.github/workflows
directory.Add this package to your dependencies
in package.json
& install it using pnpm install
:
"@inlang/cross-sell-ninja": "workspace:*"
This module exports two main asynchronous functions:
isAdopted(fs: NodeishFilesystem): Promise<boolean>
Verifies if the Ninja i18n GitHub Action is adopted within the GitHub workflow files of your project.
fs
: A NodeishFilesystem
object for file system interactions.Promise<boolean>
: true
if the Ninja i18n GitHub Action workflow is found, false
otherwise.add(fs: NodeishFilesystem): Promise<void>
Adds the Ninja i18n GitHub Action workflow to the repository's .github/workflows
directory if it's not already present.
fs
: A NodeishFilesystem
object for file system interactions.import { isAdopted, add } from '@inlang/cross-sell-ninja';
import { NodeishFilesystem } from '@lix-js/fs';
async function ensureNinjaAdoption(fs: NodeishFilesystem) {
const isWorkflowAdopted = await isAdopted(fs);
if (!isWorkflowAdopted) {
// Optionally prompt for user confirmation
const userConfirmed = await promptUser("Do you want to add the Ninja i18n workflow?");
if (userConfirmed) {
await add(fs);
console.log('Ninja i18n workflow added.');
} else {
console.log('User declined to add Ninja i18n workflow.');
}
} else {
console.log('Ninja i18n workflow is already adopted.');
}
}
Contributions are highly appreciated! Whether it's feature requests, bug reports, or pull requests, please feel free to contribute. Check out our Discord for community discussions and updates.
FAQs
A package to cross-sell Ninja
We found that @inlang/cross-sell-ninja demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.