Skip to content

Detect dandling commit #212

Description

@lirantal

Use case

In the case of the tanstack compromise a github source was added as follows:

"optionalDependencies": {
  "@tanstack/setup": "github:tanstack/router#79ac49eedf774dd4b0cfa308722bc463cfe5885c"
}

however the commit hash isn't sourced to the actual tanstack/router repo contributors but rather sourced at a forked commit (details in https://snyk.io/blog/tanstack-npm-packages-compromised/)

The fix

lockfile-lint should specifically explore github related links to check if the commit/branch/tags or other references in github related URL sources actually lives in the repo or outside of it, as part of its trust mechanism, and report an error when it is not contained within the repo

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions