Skip to content

Fetch dependency policies with optional repository auth#1185

Merged
ericmj merged 1 commit into
mainfrom
public-policy-fetch-optional-auth
Jun 17, 2026
Merged

Fetch dependency policies with optional repository auth#1185
ericmj merged 1 commit into
mainfrom
public-policy-fetch-optional-auth

Conversation

@ericmj

@ericmj ericmj commented Jun 17, 2026

Copy link
Copy Markdown
Member

get_policy/3 now goes through Hex.Auth.with_repo/3 with optional: true, like get_package/3, instead of calling :mix_hex_repo.get_policy directly. It authenticates when credentials are available and fetches anonymously otherwise, so a public policy can be resolved without authenticating to the organization.

get_policy/3 now goes through Hex.Auth.with_repo/3 with optional: true, like get_package/3, instead of calling :mix_hex_repo.get_policy directly. It authenticates when credentials are available and fetches anonymously otherwise, so a public policy can be resolved without authenticating to the organization.
@ericmj ericmj merged commit 16809f6 into main Jun 17, 2026
22 checks passed
@ericmj ericmj deleted the public-policy-fetch-optional-auth branch June 17, 2026 15:46
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