Debugging failure

This commit is contained in:
Justin Hutchings
2023-01-22 08:17:06 +00:00
parent 5f373a4ba7
commit 3495b4b367
4 changed files with 83 additions and 92 deletions
-5
View File
@@ -57,7 +57,6 @@ export default class ComponentDetection {
private static async getManifestsFromResults(): Promise<Manifest[]| undefined> { private static async getManifestsFromResults(): Promise<Manifest[]| undefined> {
core.info("Getting manifests from results"); core.info("Getting manifests from results");
try {
// Parse the result file and add the packages to the package cache // Parse the result file and add the packages to the package cache
const packageCache = new PackageCache(); const packageCache = new PackageCache();
const packages: Array<ComponentDetectionPackage>= []; const packages: Array<ComponentDetectionPackage>= [];
@@ -104,10 +103,6 @@ export default class ComponentDetection {
}); });
}); });
return manifests; return manifests;
} catch (error: any) {
core.error(error);
return undefined;
}
} }
private static getDependencyScope(pkg: ComponentDetectionPackage) { private static getDependencyScope(pkg: ComponentDetectionPackage) {
Generated Vendored
+1 -6
View File
@@ -23783,7 +23783,6 @@ class ComponentDetection {
static getManifestsFromResults() { static getManifestsFromResults() {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
core.info("Getting manifests from results"); core.info("Getting manifests from results");
try {
// Parse the result file and add the packages to the package cache // Parse the result file and add the packages to the package cache
const packageCache = new dependency_submission_toolkit_1.PackageCache(); const packageCache = new dependency_submission_toolkit_1.PackageCache();
const packages = []; const packages = [];
@@ -23826,11 +23825,6 @@ class ComponentDetection {
})); }));
})); }));
return manifests; return manifests;
}
catch (error) {
core.error(error);
return undefined;
}
}); });
} }
static getDependencyScope(pkg) { static getDependencyScope(pkg) {
@@ -23943,6 +23937,7 @@ function run() {
correlator: `${github.context.job}`, correlator: `${github.context.job}`,
id: github.context.runId.toString() id: github.context.runId.toString()
}); });
core.debug(`Manifests: ${manifests}`);
manifests === null || manifests === void 0 ? void 0 : manifests.forEach(manifest => { manifests === null || manifests === void 0 ? void 0 : manifests.forEach(manifest => {
snapshot.addManifest(manifest); snapshot.addManifest(manifest);
}); });
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long
+1
View File
@@ -26,6 +26,7 @@ async function run() {
id: github.context.runId.toString() id: github.context.runId.toString()
}); });
core.debug(`Manifests: ${manifests}`);
manifests?.forEach(manifest => { manifests?.forEach(manifest => {
snapshot.addManifest(manifest); snapshot.addManifest(manifest);
}); });