Skip to content

Commit

Permalink
Fix bug related to deepscan reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
eoftedal committed Aug 16, 2024
1 parent 8d17f2a commit 6387adf
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 1.4.1

### Bugfix

* Fix bug related to deepscans in retire.js

## 1.4.0

* Add purl to SBOM output
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"author": "Erlend Oftedal <[email protected]>",
"name": "retire-site-scanner",
"version": "1.4.0",
"version": "1.4.1",
"license": "Apache-2.0",
"description": "A scanner for checking a web site using retire.js",
"main": "dist/index.js",
Expand All @@ -24,7 +24,7 @@
"dependencies": {
"cacheable-lookup": "^7.0.0",
"puppeteer": "^22.4.0",
"retire": "^5.0.1",
"retire": "^5.1.4",
"source-map": "^0.7.4"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/retireWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function scanUrlBackdoored(
function scanUri(repo: CombinedRepository, uri: string): Array<Component> {
const uriResults = retire.scanUri(uri, repo.advisories);
const fileName = uri.split("/").slice(-1)[0].split("?")[0];
const fileNameResults = retire.scanFileName(fileName, repo.advisories);
const fileNameResults = retire.scanFileName(fileName, repo.advisories, false);
return convertResults(uriResults.concat(fileNameResults), "scanning the URL");
}

Expand Down

0 comments on commit 6387adf

Please sign in to comment.