@coana-tech/cli 14.12.12 → 14.12.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.mjs +13 -5
- package/package.json +1 -1
- package/repos/coana-tech/alucard/alucard.jar +0 -0
- package/repos/coana-tech/goana/bin/goana-darwin-amd64.gz +0 -0
- package/repos/coana-tech/goana/bin/goana-darwin-arm64.gz +0 -0
- package/repos/coana-tech/goana/bin/goana-linux-amd64.gz +0 -0
- package/repos/coana-tech/goana/bin/goana-linux-arm64.gz +0 -0
package/cli.mjs
CHANGED
|
@@ -210337,9 +210337,9 @@ function inferWorkspaceFromManifestPath(ecosystem, manifestPath, properPythonPro
|
|
|
210337
210337
|
return workspaceDir;
|
|
210338
210338
|
}
|
|
210339
210339
|
if (base.endsWith(".txt")) {
|
|
210340
|
-
const
|
|
210341
|
-
if (
|
|
210342
|
-
return
|
|
210340
|
+
const properProjectDir = properPythonProjects.find((properProjectDir2) => (workspaceDir === "." || workspaceDir.startsWith(properProjectDir2)) && workspaceDir.replace(properProjectDir2, "").split(sep5).length <= REQUIREMENTS_FILES_SEARCH_DEPTH2);
|
|
210341
|
+
if (properProjectDir) {
|
|
210342
|
+
return properProjectDir;
|
|
210343
210343
|
}
|
|
210344
210344
|
return workspaceDir;
|
|
210345
210345
|
}
|
|
@@ -225660,7 +225660,7 @@ async function onlineScan(dependencyTree, apiKey, timeout) {
|
|
|
225660
225660
|
}
|
|
225661
225661
|
|
|
225662
225662
|
// dist/version.js
|
|
225663
|
-
var version2 = "14.12.
|
|
225663
|
+
var version2 = "14.12.14";
|
|
225664
225664
|
|
|
225665
225665
|
// dist/cli-core.js
|
|
225666
225666
|
var { mapValues, omit, partition, pick } = import_lodash15.default;
|
|
@@ -226674,6 +226674,9 @@ upgradePurls.name("upgrade-purls").argument("<path>", "File system path to the f
|
|
|
226674
226674
|
var computeFixesAndUpgradePurlsCmd = new Command();
|
|
226675
226675
|
computeFixesAndUpgradePurlsCmd.name("compute-fixes-and-upgrade-purls").argument("<path>", "File system path to the folder containing the project").option("-a, --apply-fixes-to <ghsas...>", 'GHSA IDs to compute fixes for. Use "all" to compute fixes for all vulnerabilities.', []).option("--dry-run", "Show what changes would be made without actually making them", false).option("-g, --glob <pattern>", "Glob pattern to filter workspaces by absolute file path").option("-d, --debug", "Enable debug logging", false).option("-s, --silent", "Silence all debug/warning output", false).option("--range-style <style>", 'Range style to use for the output. Currently only "pin" is supported and it only works for npm.').addOption(new Option("--run-without-docker", "Run package managers without using docker").default(process.env.RUN_WITHOUT_DOCKER === "true").hideHelp()).addOption(new Option("--manifests-tar-hash <hash>", "Hash of the tarball containing all manifest files already uploaded to Socket. If provided, Socket will be used for computing dependency trees.").hideHelp()).version(version2).action(async (path2, options) => {
|
|
226676
226676
|
process.env.DOCKER_IMAGE_TAG ??= version2;
|
|
226677
|
+
if (options.rangeStyle && options.rangeStyle === "preserve") {
|
|
226678
|
+
options.rangeStyle = void 0;
|
|
226679
|
+
}
|
|
226677
226680
|
if (options.rangeStyle && options.rangeStyle !== "pin") {
|
|
226678
226681
|
throw new Error('Range style must be "pin"');
|
|
226679
226682
|
}
|
|
@@ -226692,7 +226695,12 @@ compareReportsCommand.name("compare-reports").argument("<baselineReportPath>", "
|
|
|
226692
226695
|
const newReport = await readReport(newReportPath);
|
|
226693
226696
|
await compareReports(baselineReport, newReport, options);
|
|
226694
226697
|
});
|
|
226695
|
-
|
|
226698
|
+
var findVulnerabilities = new Command();
|
|
226699
|
+
findVulnerabilities.name("find-vulnerabilities").requiredOption("--manifests-tar-hash <hash>", "Hash of the tarball containing all manifest files already uploaded to Socket.").action(async (options) => {
|
|
226700
|
+
const { artifacts } = await fetchArtifactsFromManifestsTarHash(options.manifestsTarHash);
|
|
226701
|
+
console.log(i5(artifacts.flatMap((a4) => a4.vulnerabilities?.map((v) => v.ghsaId) ?? [])));
|
|
226702
|
+
});
|
|
226703
|
+
program2.name("coana-cli").addCommand(run2, { isDefault: true }).addCommand(findVulnerabilities).addCommand(applyFixes).addCommand(upgradePurls, { hidden: true }).addCommand(compareReportsCommand).addCommand(computeFixesAndUpgradePurlsCmd, { hidden: true }).configureHelp({ sortSubcommands: true }).version(version2);
|
|
226696
226704
|
program2.parseAsync();
|
|
226697
226705
|
var defaultCliOptions = {
|
|
226698
226706
|
debug: false,
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|