Skip to content

Commit

Permalink
fix(pnpm): add missing virtualStoreDirMaxLength (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
fraxken authored Aug 11, 2024
1 parent 224ec62 commit 6fd487e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/strategies/github-advisory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ async function pnpmAudit(
const auditOptions = {
include: { dependencies: true, devDependencies: true, optionalDependencies: false },
lockfileDir,
registry
registry,
virtualStoreDirMaxLength: 120
};

const lockfile = await readWantedLockfile(lockfileDir, {
Expand All @@ -164,7 +165,9 @@ async function pnpmAudit(
// eslint-disable-next-line
const getAuthHeader = () => (void 0);
const { advisories } = await audit(
lockfile!, getAuthHeader, auditOptions
lockfile!,
getAuthHeader,
auditOptions
);

// Note: we need to cast because original interface is incomplete
Expand Down

0 comments on commit 6fd487e

Please sign in to comment.