Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ This project is designed to generate periodic security reports in both HTML and

## Features

- Automatically clones and scans Git repositories using **scanner.cwd**.
- Automatically clones and scans Git repositories using **scanner.workingDir**.
- Provides a visual overview of **security threats** and quality issues for multiple Git or NPM packages.
- Facilitates visualization of changes over time.
- Generates reports in both **HTML** and **PDF** formats.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@nodesecure/flags": "^3.0.3",
"@nodesecure/ossf-scorecard-sdk": "^3.2.1",
"@nodesecure/rc": "^5.0.0",
"@nodesecure/scanner": "^9.0.0",
"@nodesecure/scanner": "^10.0.0",
"@nodesecure/utils": "^2.2.0",
"@openally/mutex": "^2.0.0",
"@topcli/spinner": "^4.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/analysis/scanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export async function cwd(

try {
const name = `${path.basename(dir)}.json`;
const { dependencies } = await scanner.cwd(dir, {
const { dependencies } = await scanner.workingDir(dir, {
maxDepth: 4,
vulnerabilityStrategy: "none"
});
Expand Down
2 changes: 1 addition & 1 deletion test/api/report.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ PDF or HTML for packages that don't have a scorecard`, async() => {
});
});

function isPDF(buf) {
function isPDF(buf: Buffer) {
return (
Buffer.isBuffer(buf) && buf.lastIndexOf("%PDF-") === 0 && buf.lastIndexOf("%%EOF") > -1
);
Expand Down