Skip to content

Upgrading to jfrog-cli 4.5.8 from 4.5.6 broke jf audit with workspaces #274

@trdyer

Description

@trdyer

Describe the bug

When running a previously working pipeline that called jf audit after upgrading to v4.5.8 I encountered ENOWORKSPACES errors attempting to validate my projects dependencies.

I believe this can be remedied by specifying the folder to scan, but this was not previously required and represents a breaking change.

Current behavior

From Github Actions

[Info] Performing scans on 17 targets:
[
  {
    "target": "/home/runner/work/REDACTED",
    "technology": "npm"
  },
  {
    "target": "/home/runner/work/REDACTED",
    "technology": "npm"
  },
// ... and many more
]
[Info] Not entitled for JAS, skipping advance security scans...
[Info] Calculating npm dependencies...
npm error code ENOWORKSPACES
npm error This command does not support workspaces.
npm error A complete log of this run can be found in: /home/runner/.npm/_logs/2025-05-12T18_56_40_031Z-debug-0.log
// ... and many more

Reproduction steps

run jf audit in a project that uses workspaces with jfcli v4.5.8

Expected behavior

The audit completes

Setup JFrog CLI version

4.5.8

JFrog CLI version

4.5.8

Workflow operating system type and version

Linux

JFrog Artifactory version (if relevant)

No response

JFrog Xray version (if relevant)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions