jfrog / jfrog/frogbot

Add support for bun package management

Open
#921 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
Dominant language
Go
Stars
372
Forks
107
Avg merge
2d 20h
Merged PRs (30d)
5

Description

Is your feature request related to a problem? Please describe.
Yes. Currently when Javascript codebases using bun for package management are scanned they are detected as npm by Frogbot. This then appears to cause the frogbot scans to fail when the package.json contains content which is not supported by npm.

e.g. given the following package.json

{
  "name": "bun-sample",
  "module": "index.ts",
  "type": "module",
  "private": true,
  "devDependencies": {
    "@types/bun": "latest"
  },
  "peerDependencies": {
    "typescript": "^5"
  },
  "dependencies": {
    "@actions/core": "^1.11.1",
    "@actions-commons/gha": "workspace:*"
  }
}

The scan output indicates that frogbot is treating this dir as npm based.

...
  14:09:24 [Info] Performing scans on 8 targets:
  [
    {
      "target": "/tmp/jfrog.cli.temp.-1757340555-3683775740/bun-sample",
      "technology": "npm"
    },
...

The following error is seen during the frogbot scan.

  Error: 7 [Error] target '/tmp/jfrog.cli.temp.-1757340555-3683775740/bun-sample [npm]' errors:
  failed to generate SBOM for /tmp/jfrog.cli.temp.-1757340555-3683775740/bun-sample: failed to build dependency tree: failed while building 'npm' dependency tree: error while running '/usr/bin/npm install --ignore-scripts --package-lock-only': exit status 1
  npm warn config ignoring workspace config at /tmp/jfrog.cli.temp.-1757340555-3683775740/bun-sample/.npmrc
  npm error code EUNSUPPORTEDPROTOCOL
  npm error Unsupported URL Type "workspace:": workspace:*
  npm error A complete log of this run can be found in: /home/runner/.npm/_logs/2025-09-08T14_09_16_516Z-debug-0.log

Describe the solution you'd like to see
Ideally full bun support so that codebases using this can be scanned for vulns, failing that some logic to stop bun based projects being incorrectly identified as npm so that it doesn't cause the whole scan to fail.

Describe alternatives you've considered
n/a

Additional context
Please let me know if you need any further information or if I have missed anything else.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the scan with the bun-sample package.json shown in the issue and inspect where the project is detected as npm. Determine whether the scope is full bun scanning or only preventing incorrect npm detection; done should be demonstrated by a bun-based project scanning without the reported npm workspace:* failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
bun, javascript, typescript
Domain
devtools, security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.