Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

purl2sym: Add metadata support for packages hosted on GitHub #112

Merged
merged 12 commits into from
Mar 26, 2024

Conversation

keshav-space
Copy link
Member

@keshav-space keshav-space commented Mar 25, 2024

  • This PR adds support for getting package metadata for arbitrary GitHub repositories using this PURL format: pkg:github/{owner}/{repo-name}.

  • Also explicitly adds support for these packages hosted on GitHub.

    • pkg:github/avahi/avahi
    • pkg:github/bestouff/genext2fs
    • pkg:github/dosfstools/dosfstools
    • pkg:github/google/brotli
    • pkg:github/hewlettpackard/wireless-tools
    • pkg:github/inotify-tools/inotify-tools
    • pkg:github/libbpf/bpftool
    • pkg:github/llvm/llvm-project
    • pkg:github/nixos/nix
    • pkg:github/plougher/squashfs-tools
    • pkg:github/pupnp/pupnp
    • pkg:github/python/cpython
    • pkg:github/rpm-software-management/rpm
    • pkg:github/shadow-maint/shadow
    • pkg:github/sqlite/sqlite
    • pkg:github/u-boot/u-boot
    • pkg:generic/miniupnpc
    • pkg:generic/miniupnpd
    • pkg:generic/minissdpd

Note

Fetching metadata for arbitrary GitHub repositories assumes that the tag name of the repository is a valid version.

- The github support makes use of GitHub GraphQL API
- Before fetching metadata of github package add GitHub API in `.env` file. Example: `GH_TOKEN=your-github-api-key`

Signed-off-by: Keshav Priyadarshi <[email protected]>
Signed-off-by: Keshav Priyadarshi <[email protected]>
Signed-off-by: Keshav Priyadarshi <[email protected]>
Signed-off-by: Keshav Priyadarshi <[email protected]>
src/fetchcode/package.py Outdated Show resolved Hide resolved
src/fetchcode/utils.py Outdated Show resolved Hide resolved
@keshav-space keshav-space changed the title Purl2sym: Add metadata support for packages hosted on GitHub purl2sym: Add metadata support for packages hosted on GitHub Mar 26, 2024
Signed-off-by: Keshav Priyadarshi <[email protected]>
Copy link
Collaborator

@TG1999 TG1999 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants