Skip to content

Support for bun as JavaScript package ecosystem #3559

Description

@pitmullerIngka

What would you like to be added: I would like to see support for bun as a package manager to scans for dependency vulnerabilities. It has shown to be quite smooth and fast to work with for us: https://bun.com/docs/pm/cli/install
So far npm, pnpm, and yarn are supported for JavaScript, according to https://oss.anchore.com/docs/capabilities/all-packages/

Why is this needed: We're using exclusively bun in our project and the scans are not executing because it cannot interpret a bun.lock file.
Will introduce another lock file as temporary workaround for now.

Additional context: Running the scan it only shows

[0002] ERROR unable to parse yarn v2 package key from=syft key=__metadata
No vulnerabilities found.

Nothing breaks, so it just silently fails. Not sure why it's trying to find yarn. We had yarn previously in the project but it's been removed some time ago, but there might be some leftovers that made it search for yarn.

Grype version: v0.110.0
Bun version: 1.3.14

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions