Skip to content

Navigation Menu

Sign in
Sign up

Getting license information from GitHub #148

Open

Description

In the pipeline we created, we enrich SBOMs with many Go packages. For these packages, parlay ecosystems enrich doesn't provide a licenseDeclared value. On the other hand, I can find that information through GitHub by invoking GET https://api.github.com/repos/{owner}/{repo}/license?ref={version}.

I'm considering writing a parlay github enrich command that would use GitHub to:

  • set licenseConcluded if unset/NOASSERTION
  • add an externalRef with referenceCategory: "OTHER", referenceType: "license", referenceLocator: [the URL to the license file on GitHub] if non-exitant.

Packages without a GitHub homepage would be skipped. In practice this means parlay ecosystems enrich should run first, as it populates homepages.

Does that sound like something you would be interested in?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      AltStyle によって変換されたページ (->オリジナル) /