Skip to content

Commit 91ced30

Browse files
committed
Change encoding fix
1 parent 44a6c51 commit 91ced30

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ const core = require('@actions/core');
22
const github = require('@actions/github');
33
const fs = require('fs');
44
const glob = require('glob');
5-
const he = require('he');
65

76
import {
87
PackageCache,
@@ -49,8 +48,7 @@ function getManifestFromSpdxFile(document, fileName) {
4948
purl = `pkg:generic/${packageName}@${packageVersion}`;
5049
}
5150
//Working around a character encoding issue I'm seeing from a Microsoft SBOM generator.
52-
purl = he.decode(purl);
53-
51+
purl = decodeURI(purl);
5452

5553
let relationships = document.relationships?.find(rel => rel.relatedSpdxElement == pkg.SPDXID && rel.relationshipType == "DEPENDS_ON" && rel.spdxElementId != "SPDXRef-RootPackage");
5654
if (relationships != null && relationships.length > 0) {

0 commit comments

Comments
 (0)