Skip to content
This repository was archived by the owner on Apr 2, 2026. It is now read-only.

fix(registry): add GitHub token auth for private repo access (#181)#183

Merged
crrow merged 1 commit intomainfrom
issue-181-registry-auth
Apr 1, 2026
Merged

fix(registry): add GitHub token auth for private repo access (#181)#183
crrow merged 1 commit intomainfrom
issue-181-registry-auth

Conversation

@crrow
Copy link
Copy Markdown
Collaborator

@crrow crrow commented Apr 1, 2026

Summary

  • Add github_token field to StrategyRegistry with GITHUB_TOKEN env var fallback
  • Use API URL (/releases/assets/{id}) with Bearer auth for private repo downloads
  • Store wasm_api_url in RegistryEntry for authenticated asset downloads

Tested: GITHUB_TOKEN=... rara strategy list and strategy fetch btc-momentum both work on private repo.

Closes #181

Test plan

  • cargo check / cargo clippy / cargo test pass
  • Manual test: strategy list returns 2 strategies from private repo
  • Manual test: strategy fetch btc-momentum downloads and validates WASM

- Add github_token field to StrategyRegistry with GITHUB_TOKEN env fallback
- Use API URL with Bearer auth for private repo release asset downloads
- Store wasm_api_url in RegistryEntry for authenticated downloads

Closes #181
@crrow crrow added the bug Something isn't working label Apr 1, 2026
@crrow crrow merged commit c2e9a8f into main Apr 1, 2026
6 of 8 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(registry): add GitHub token auth for private repo access

1 participant