Skip to content

Conversation

@brianf
Copy link
Contributor

@brianf brianf commented Jan 22, 2026

Summary

This PR adds support for configuring a custom OSS Index server URL, enabling users to use private OSS Index instances.

Changes

  • Added --server/-h CLI option to ossi command
  • Added Server field to OssIndexServerConfig class and interface
  • Updated interactive config (auditjs config) to prompt for server URL
  • Added tests for server URL configuration
  • Updated README with usage documentation

Usage

Users can now specify a custom OSS Index server via:

Command line:

auditjs ossi --server https://custom-ossindex.example.com

Config file: Add Server field to ~/.ossindex/.oss-index-config

Interactive config:

auditjs config

Command line arguments take precedence over config file settings.

Test plan

  • ✅ All existing tests pass (32/32)
  • ✅ Added new test for server URL configuration
  • ✅ Verified config file reads/writes Server field correctly
  • ✅ Verified command line argument overrides config file

🤖 Generated with Claude Code

This change allows users to configure a custom OSS Index server URL,
enabling support for private OSS Index instances.

Changes:
- Added --server/-h CLI option to ossi command
- Added Server field to OssIndexServerConfig class and interface
- Updated interactive config to prompt for server URL
- Added tests for server URL configuration
- Updated README with usage documentation

Users can now specify a custom OSS Index server via:
1. Command line: auditjs ossi --server https://custom-ossindex.example.com
2. Config file: Server field in ~/.ossindex/.oss-index-config
3. Interactive config: auditjs config

Command line arguments take precedence over config file settings.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@paul-botsco-2-0 paul-botsco-2-0 bot added the 😧 commits missing verification Some commits are not signed - this must be resolved label Jan 22, 2026
@paul-botsco-2-0
Copy link

Thanks for the contribution. Unfortunately some of your commits don't meet our standards. All commits must be signed and have author information set.

The commits to review are:

See Signed Commits.

@madpah madpah self-requested a review as a code owner January 27, 2026 13:07
Signed-off-by: Paul Horton <phorton@sonatype.com>
@madpah madpah self-assigned this Jan 27, 2026
@madpah madpah merged commit b6f3a49 into main Jan 27, 2026
2 of 3 checks passed
@madpah madpah deleted the feature/ossindex-url-override branch January 27, 2026 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

😧 commits missing verification Some commits are not signed - this must be resolved

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants