Debugging failure
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
+1
-6
@@ -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);
|
||||||
});
|
});
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -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);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user