Skip to content

Commit

Permalink
fix some scans which weren't working
Browse files Browse the repository at this point in the history
Signed-off-by: MarkAckert <[email protected]>
  • Loading branch information
MarkAckert committed Feb 2, 2024
1 parent e88903c commit e7fafc8
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
15 changes: 15 additions & 0 deletions licenses/dependency-scan/resources/repoRules.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,21 @@
]
}
},
"sample-angular-app": {
"analyzer": {
"allow_dynamic_versions": true
}
},
"sample-iframe-app": {
"analyzer": {
"allow_dynamic_versions": true
}
},
"sample-react-app": {
"analyzer": {
"allow_dynamic_versions": true
}
},
"vscode-extension-for-zowe": {
"excludes": {
"paths": [
Expand Down
8 changes: 7 additions & 1 deletion licenses/dependency-scan/src/actions/ort/OrtScanAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,13 @@ export class OrtScanAction implements IAction {
console.log("Scanning individual project " + projectDir);

const analyzerFlags = this.repoRules.getOrtAnalyzerFlags(projectDir);


if (projectDir.includes("orion-editor-component")) {
console.log("Fixing orion-editor-components old references to gizaartifactory...");
const fixedPkgLock = fs.readFileSync(projectDir + path.sep + "package-lock.json").toString()
.replaceAll('gizaartifactory', 'zowe');
fs.writeFileSync(projectDir + path.sep + "package-lock.json", fixedPkgLock);
}

const licenseProcess = spawn("ort", [Constants.ORT_LOG_LEVEL, analyzerFlags, "analyze", "-i",
projectDir,
Expand Down
2 changes: 1 addition & 1 deletion licenses/dependency-scan/src/constants/Constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class Constants {
// only change if re-running builds / modifying manifest or other metadata locally
public static readonly DOWNLOAD_MANIFEST: boolean = Utilities.getEnv("ZOWE_DL_MANIFEST", true);

public static readonly ZOWE_MANIFEST_BRANCH: string = Utilities.getEnvStr("ZOWE_MANIFEST_BRANCH", "v1.7.0");
public static readonly ZOWE_MANIFEST_BRANCH: string = Utilities.getEnvStr("ZOWE_MANIFEST_BRANCH", "v2.x/rc");

public static readonly EXEC_CLONE: boolean = Utilities.getEnv("ZOWE_STEP_CLONE", true);

Expand Down

0 comments on commit e7fafc8

Please sign in to comment.