
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@code-pushup/portal-client
Advanced tools
API client with type definitions for Code PushUp Portal.
npm install @code-pushup/portal-client
import { uploadReportToPortal } from '@code-pushup/portal-client';
// ...
const report = await uploadReportToPortal({
server: '<GRAPHQL URL>',
apiKey: process.env.CODE_PUSHUP_API_KEY,
data: {
organization: '<ORGANIZATION SLUG>',
project: '<PROJECT SLUG>',
commit: '<COMMIT SHA>',
plugins: [
// ...
],
categories: [
// ...
],
// ...
},
});
import { getPortalComparisonLink } from '@code-pushup/portal-client';
// ...
const url = await getPortalComparisonLink({
server: '<GRAPHQL URL>',
apiKey: process.env.CODE_PUSHUP_API_KEY,
parameters: {
organization: '<ORGANIZATION SLUG>',
project: '<PROJECT SLUG>',
before: '<COMMIT SHA_1>',
after: '<COMMIT SHA_2>',
},
});
import { downloadReportFromPortal } from '@code-pushup/portal-client';
// ...
const report = await downloadReportFromPortal({
server: '<GRAPHQL URL>',
apiKey: process.env.CODE_PUSHUP_API_KEY,
parameters: {
organization: '<ORGANIZATION SLUG>',
project: '<PROJECT SLUG>',
/* OPTIONAL: if commit not provided, finds latest report in default branch */
// commit: '<COMMIT SHA>',
/* OPTIONAL: opt in to including audit details (issues, trees, etc.), omitted by default to minimize payload */
// withAuditDetails: true,
/* OPTIONAL: maximum number of recent commits to search for latest report (ignored if commit set) */
// maxCommits: 30,
},
});
import { downloadProjectsFromPortal } from '@code-pushup/portal-client';
// ...
const report = await downloadProjectsFromPortal({
server: '<GRAPHQL URL>',
apiKey: process.env.CODE_PUSHUP_API_KEY,
parameters: {
/* OPTIONAL: filter projects by organization */
// organization: '<ORGANIZATION SLUG>',
/* OPTIONAL: opt in to including each project's latest report */
// withLatestReport: true,
/* OPTIONAL: opt in to including audit details (ignored unless withLatestReport enabled) */
// withAuditDetails: true,
/* OPTIONAL: maximum number of recent commits to search for latest report (ignored unless withLatestReport enabled) */
// maxCommits: 30,
},
});
FAQs
API client with type definitions for Code PushUp Portal.
The npm package @code-pushup/portal-client receives a total of 1,024 weekly downloads. As such, @code-pushup/portal-client popularity was classified as popular.
We found that @code-pushup/portal-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.