Repository navigation
Add ecosyste.ms identity options and friendlier lookup errors - #245
Merged
Merged
Conversation
Bump enrichment to v0.4.0 (which brings ecosystems-go v0.2.0) and route all enrichment client construction through a single helper that applies GIT_PKGS_ECOSYSTEMS_FROM, GIT_PKGS_ECOSYSTEMS_API_KEY and GIT_PKGS_ECOSYSTEMS_BATCH_SIZE. BulkLookup failures now include a hint pointing at those variables when no identity is configured. Fixes #231
andrew
force-pushed
the
ecosystems-identity
branch
from
June 28, 2026 06:47
63ad9bf to
28d8ada
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #231.
Bumps
github.com/git-pkgs/enrichmentto v0.4.0, which addsWithFrom,WithAPIKeyandWithBatchSizeand pulls in ecosystems-go v0.2.0 with its improved error handling and batching.All enrichment client construction now goes through a single
newEnrichmentClient()helper incmd/enrichment.gothat applies the standard user agent plus three new environment variables:GIT_PKGS_ECOSYSTEMS_FROMsets theFromheader so requests use the ecosyste.ms polite poolGIT_PKGS_ECOSYSTEMS_API_KEYsends a bearer tokenGIT_PKGS_ECOSYSTEMS_BATCH_SIZEoverrides the bulk lookup batch sizePreviously
licenses,fundingandfreshnesswent through the swappableNewEnrichmentClientvar whileoutdated,sbom,changelogandintegritycalledenrichment.NewClientdirectly; they're now unified so the env vars apply everywhere.BulkLookuperrors are wrapped with a hint pointing atGIT_PKGS_ECOSYSTEMS_FROM/GIT_PKGS_ECOSYSTEMS_API_KEYwhen no identity is configured, so the failure mode in #231 becomes:The hint is suppressed once an identity is set. README documents the new variables alongside
GIT_PKGS_DIRECT.