| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
This PR adds first-class support for configuring multiple Maven <server> credential entries in the generated settings.xml, enabling workflows to publish to release/snapshot/private repositories without custom settings.xml patching. It introduces a new multiline input (mvn-server-credentials) that is parsed, validated (malformed entries + duplicate IDs rejected), and used preferentially while preserving the existing single-server inputs (and deprecated aliases) as a fallback.
Changes:
| File | Description |
|---|---|
| src/constants.ts | Adds the mvn-server-credentials input constant. |
| src/auth.ts | Adds parsing + selection logic for multiple servers and updates settings.xml generation to emit multiple <server> entries. |
| tests/auth.test.ts | Adds coverage for parsing, validation, precedence rules, and multi-server XML output ordering. |
| action.yml | Documents the new multiline input at the action interface level. |
| README.md | Adds the new input to the published inputs table. |
| docs/advanced-usage.md | Adds an “Publishing to multiple Maven servers” section with an example and expected XML output. |
| dist/setup/index.js | Updates bundled constants export to include the new input. |
| dist/setup/81.index.js | Updates bundled auth logic for multi-server parsing/generation. |
| dist/cleanup/index.js | Updates bundled constants to include the new input (unused in cleanup). |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Description:
Maven workflows that publish to separate release, snapshot, or private repositories currently have to generate or patch settings.xml themselves. This adds a structured mvn-server-credentials multiline input that generates multiple ordered <server> entries from environment variable names.
The parser rejects malformed entries and duplicate server IDs, while existing single-server inputs and deprecated aliases remain the fallback when the new input is absent. XML escaping, GPG profile behavior, settings overwrite handling, documentation, tests, and checked-in action bundles are updated consistently.
Related issue:
Fixes: #85
Check list: