Add environment variable interpolation in alias definitions with security controls#6131
Merged
swissspidy merged 19 commits intomainfrom Mar 13, 2026
Merged
Add environment variable interpolation in alias definitions with security controls#6131swissspidy merged 19 commits intomainfrom
swissspidy merged 19 commits intomainfrom
Conversation
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add usage of environment variables in aliases
Add environment variable interpolation in alias definitions
Oct 29, 2025
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
This comment was marked as resolved.
This comment was marked as resolved.
- Ensure interpolate_env_vars always returns string type - Change test to use admin instead of non-existent testuser Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
- Add --raw flag to list and get commands to display aliases without env interpolation - Store both raw and interpolated versions of aliases - Add security section documenting that env vars appear in output - Add tests for --raw flag functionality Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
This comment was marked as resolved.
This comment was marked as resolved.
Copilot
AI
changed the title
Add environment variable interpolation in alias definitions
Add environment variable interpolation in alias definitions with security controls
Dec 12, 2025
This comment was marked as resolved.
This comment was marked as resolved.
swissspidy
reviewed
Feb 7, 2026
swissspidy
reviewed
Feb 7, 2026
- Create private get_runtime_aliases() helper method - Both get_aliases() and get_raw_aliases() now use the helper - Helper accepts boolean parameter to control interpolation - Reduces code duplication and improves maintainability Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
- Create private add_at_all_alias() helper method - Both aliases and raw_aliases now use the same helper - Eliminates duplicated code blocks - Improves maintainability Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
swissspidy
reviewed
Mar 13, 2026
swissspidy
approved these changes
Mar 13, 2026
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.
@allalias addition duplicationOriginal prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.