Repository navigation
fix(cli): hide CORA_BASE_URL, CORA_MODEL and CORA_PROVIDER values in --help - #704
Merged
Merged
Conversation
…--help (#687) Signed-off-by: ajianaz <[email protected]>
ajianaz
added a commit
that referenced
this pull request
Oct 27, 2026
…--help (#704) ## What `--help` no longer prints the values of `CORA_BASE_URL`, `CORA_MODEL` and `CORA_PROVIDER` (clap `hide_env_values`), like the API key and GitHub token already. ## Why A base URL can carry credentials (`user:pass@host`, `?key=...`) and the other two name internal deployments; `--help` output ends up in logs, CI output and screenshots. Closes #687. ## Testing - New test: `CORA_BASE_URL=https://u:[email protected]/v1?key=...`, `CORA_MODEL` and `CORA_PROVIDER` never appear in `--help`, `review --help` or `scan --help`. - fmt, clippy -D warnings and the full suite pass. Signed-off-by: ajianaz <[email protected]> Co-authored-by: ajianaz <[email protected]>
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.
What
--helpno longer prints the values ofCORA_BASE_URL,CORA_MODELandCORA_PROVIDER(claphide_env_values), like the API key and GitHub token already.Why
A base URL can carry credentials (
user:pass@host,?key=...) and the other two name internal deployments;--helpoutput ends up in logs, CI output and screenshots. Closes #687.Testing
CORA_BASE_URL=https://u:[email protected]/v1?key=...,CORA_MODELandCORA_PROVIDERnever appear in--help,review --helporscan --help.