Skip to content

Migrate license enrichment to org-scoped endpoint#180

Open
lelia wants to merge 6 commits intomainfrom
lelia/update-purl-endpoint-support
Open

Migrate license enrichment to org-scoped endpoint#180
lelia wants to merge 6 commits intomainfrom
lelia/update-purl-endpoint-support

Conversation

@lelia
Copy link
Copy Markdown
Contributor

@lelia lelia commented Apr 8, 2026

Summary

  • Passes org_slug to sdk.purl.post() so license enrichment uses the current org-scoped PURL endpoint (POST /v0/orgs/{slug}/purl) instead of the deprecated global endpoint (POST /v0/purl)
  • Backfills missing CHANGELOG entries for v2.2.74v2.2.80

Changes

  • get_license_text_via_purl() now routes through the org-scoped endpoint

Reviewer Notes

🚨 NOTE: Should be reviewed in parallel with socket-sdk-python companion PR (SocketDev/socket-sdk-python#76) which passes org_slug in the CLI's license enrichment call. This CLI PR should not be merged until the SDK change is released.

Next Steps

Once the SDK is released, bump the version in pyproject.toml and regenerate the lockfile before merging this PR.

lelia added 2 commits April 8, 2026 17:10
Signed-off-by: lelia <2418071+lelia@users.noreply.github.com>
Signed-off-by: lelia <2418071+lelia@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 8, 2026

🚀 Preview package published!

Install with:

pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple socketsecurity==2.2.81.dev2

Docker image: socketdev/cli:pr-180

lelia added 4 commits April 8, 2026 17:21
Signed-off-by: lelia <2418071+lelia@users.noreply.github.com>
Signed-off-by: lelia <2418071+lelia@users.noreply.github.com>
Signed-off-by: lelia <2418071+lelia@users.noreply.github.com>
Signed-off-by: lelia <2418071+lelia@users.noreply.github.com>
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.

1 participant