Skip to content

Commit 901b53b

Browse files
committed
Merge branch 'develop'
2 parents 612dec6 + 6ed64a9 commit 901b53b

File tree

9 files changed

+47
-20
lines changed

9 files changed

+47
-20
lines changed

dist/nowsecure-convert-sarif/index.js

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49201,7 +49201,7 @@ const nowsecure_version_1 = __nccwpck_require__(1328);
4920149201
function encodePurl(ecosystem, name, version) {
4920249202
let purl = `pkg:${ecosystem}/${name}`;
4920349203
if (version) {
49204-
purl += `@${version}`;
49204+
purl += `@${encodeURIComponent(version)}`;
4920549205
}
4920649206
return purl;
4920749207
}
@@ -49238,8 +49238,15 @@ function convertToSnapshot(deputy, githubCorrelator, context) {
4923849238
// added the TypeScript compiler will emit an error.
4923949239
}
4924049240
const purl = encodePurl(ecosystem, component.name, component.version);
49241-
manifest.addDirectDependency(new dependency_submission_toolkit_1.Package(purl));
49242-
manifests[source] = manifest;
49241+
try {
49242+
const pkg = new dependency_submission_toolkit_1.Package(purl);
49243+
manifest.addDirectDependency(pkg);
49244+
manifests[source] = manifest;
49245+
}
49246+
catch (e) {
49247+
// Add some additional context about the PURL that failed to be parsed.
49248+
console.warn(`${e.message} (PURL is '${purl}')`);
49249+
}
4924349250
}
4924449251
const snapshot = new dependency_submission_toolkit_1.Snapshot({
4924549252
version: nowsecure_version_1.version,
@@ -49454,7 +49461,7 @@ exports.getFindingsTable = getFindingsTable;
4945449461
Object.defineProperty(exports, "__esModule", ({ value: true }));
4945549462
exports.version = void 0;
4945649463
// Generated by genversion.
49457-
exports.version = "4.0.0";
49464+
exports.version = "4.0.1";
4945849465

4945949466

4946049467
/***/ }),

dist/nowsecure-convert-sarif/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/nowsecure-create-issues/index.js

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77268,7 +77268,7 @@ const nowsecure_version_1 = __nccwpck_require__(1328);
7726877268
function encodePurl(ecosystem, name, version) {
7726977269
let purl = `pkg:${ecosystem}/${name}`;
7727077270
if (version) {
77271-
purl += `@${version}`;
77271+
purl += `@${encodeURIComponent(version)}`;
7727277272
}
7727377273
return purl;
7727477274
}
@@ -77305,8 +77305,15 @@ function convertToSnapshot(deputy, githubCorrelator, context) {
7730577305
// added the TypeScript compiler will emit an error.
7730677306
}
7730777307
const purl = encodePurl(ecosystem, component.name, component.version);
77308-
manifest.addDirectDependency(new dependency_submission_toolkit_1.Package(purl));
77309-
manifests[source] = manifest;
77308+
try {
77309+
const pkg = new dependency_submission_toolkit_1.Package(purl);
77310+
manifest.addDirectDependency(pkg);
77311+
manifests[source] = manifest;
77312+
}
77313+
catch (e) {
77314+
// Add some additional context about the PURL that failed to be parsed.
77315+
console.warn(`${e.message} (PURL is '${purl}')`);
77316+
}
7731077317
}
7731177318
const snapshot = new dependency_submission_toolkit_1.Snapshot({
7731277319
version: nowsecure_version_1.version,
@@ -77521,7 +77528,7 @@ exports.getFindingsTable = getFindingsTable;
7752177528
Object.defineProperty(exports, "__esModule", ({ value: true }));
7752277529
exports.version = void 0;
7752377530
// Generated by genversion.
77524-
exports.version = "4.0.0";
77531+
exports.version = "4.0.1";
7752577532

7752677533

7752777534
/***/ }),

dist/nowsecure-create-issues/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/nowsecure-upload-app/index.js

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48986,7 +48986,7 @@ const nowsecure_version_1 = __nccwpck_require__(1328);
4898648986
function encodePurl(ecosystem, name, version) {
4898748987
let purl = `pkg:${ecosystem}/${name}`;
4898848988
if (version) {
48989-
purl += `@${version}`;
48989+
purl += `@${encodeURIComponent(version)}`;
4899048990
}
4899148991
return purl;
4899248992
}
@@ -49023,8 +49023,15 @@ function convertToSnapshot(deputy, githubCorrelator, context) {
4902349023
// added the TypeScript compiler will emit an error.
4902449024
}
4902549025
const purl = encodePurl(ecosystem, component.name, component.version);
49026-
manifest.addDirectDependency(new dependency_submission_toolkit_1.Package(purl));
49027-
manifests[source] = manifest;
49026+
try {
49027+
const pkg = new dependency_submission_toolkit_1.Package(purl);
49028+
manifest.addDirectDependency(pkg);
49029+
manifests[source] = manifest;
49030+
}
49031+
catch (e) {
49032+
// Add some additional context about the PURL that failed to be parsed.
49033+
console.warn(`${e.message} (PURL is '${purl}')`);
49034+
}
4902849035
}
4902949036
const snapshot = new dependency_submission_toolkit_1.Snapshot({
4903049037
version: nowsecure_version_1.version,
@@ -49126,7 +49133,7 @@ run();
4912649133
Object.defineProperty(exports, "__esModule", ({ value: true }));
4912749134
exports.version = void 0;
4912849135
// Generated by genversion.
49129-
exports.version = "4.0.0";
49136+
exports.version = "4.0.1";
4913049137

4913149138

4913249139
/***/ }),

dist/nowsecure-upload-app/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nowsecure-action",
3-
"version": "4.0.0",
3+
"version": "4.0.1",
44
"main": "dist/index.js",
55
"license": "MIT",
66
"author": "Keegan Saunders <ksaunders@nowsecure.com>",

src/nowsecure-snapshot.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { USER_AGENT } from "./nowsecure-client";
1818
function encodePurl(ecosystem: string, name: string, version?: string): string {
1919
let purl = `pkg:${ecosystem}/${name}`;
2020
if (version) {
21-
purl += `@${version}`;
21+
purl += `@${encodeURIComponent(version)}`;
2222
}
2323

2424
return purl;
@@ -66,8 +66,14 @@ export function convertToSnapshot(
6666

6767
const purl = encodePurl(ecosystem, component.name, component.version);
6868

69-
manifest.addDirectDependency(new Package(purl));
70-
manifests[source] = manifest;
69+
try {
70+
const pkg = new Package(purl);
71+
manifest.addDirectDependency(pkg);
72+
manifests[source] = manifest;
73+
} catch (e) {
74+
// Add some additional context about the PURL that failed to be parsed.
75+
console.warn(`${(e as Error).message} (PURL is '${purl}')`);
76+
}
7177
}
7278

7379
const snapshot = new Snapshot(

src/nowsecure-version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
// Generated by genversion.
2-
export const version = "4.0.0";
2+
export const version = "4.0.1";

0 commit comments

Comments
 (0)