Add debugging

This commit is contained in:
Justin Hutchings
2023-01-22 07:22:56 +00:00
parent 82a0300769
commit eb2d403b7f
3 changed files with 4 additions and 1 deletions

View File

@@ -51,7 +51,9 @@ export default class ComponentDetection {
// Run the component-detection CLI on the path specified
private static async runComponentDetection(path: string) {
core.info("Running component-detection");
try {
await exec.exec(`ls -la`);
await exec.exec(`${this.componentDetectionPath} scan --SourceDirectory ${path} --ManifestFile ${this.outputPath}`);
} catch (error: any) {
core.error(error);

1
dist/index.js generated vendored
View File

@@ -23776,6 +23776,7 @@ class ComponentDetection {
return __awaiter(this, void 0, void 0, function* () {
core.info("Running component-detection");
try {
yield exec.exec(`ls -la`);
yield exec.exec(`${this.componentDetectionPath} scan --SourceDirectory ${path} --ManifestFile ${this.outputPath}`);
}
catch (error) {

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long