Skip to content

Conversation

@Gijsreyn
Copy link
Contributor

PR Summary

Initialization order changes before evaluating parameter defaults to allow parameters to use secret() function.

PR Context

Fix #1078

@Gijsreyn
Copy link
Contributor Author

@SteveL-MSFT up for grabs. It's a small one.

Copy link
Collaborator

@michaeltlombardi michaeltlombardi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moving discovery of extensions earlier in the process makes sense to me - I think the number of cases where we'll need extensions before processing the document will only grow, such as if we eventually support extensions that provide configuration functions, or retrieving parameters from a remote key-value store, etc.

Copy link
Member

@SteveL-MSFT SteveL-MSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems so obvious now, was a mistake before. Can you also add a test for variables?

@Gijsreyn Gijsreyn force-pushed the allow-parameters-secret branch from 75e6a06 to 5e341bb Compare August 29, 2025 07:34
@Gijsreyn
Copy link
Contributor Author

This seems so obvious now, was a mistake before. Can you also add a test for variables?

Don't worry, it can happen to all of us. Just added a test for the variable. Seeing if it succeeds and then it's ready to go :)

@Gijsreyn Gijsreyn requested a review from SteveL-MSFT August 29, 2025 07:35
@SteveL-MSFT SteveL-MSFT added this pull request to the merge queue Aug 29, 2025
Merged via the queue into PowerShell:main with commit 5b9d420 Aug 29, 2025
4 checks passed
@Gijsreyn Gijsreyn deleted the allow-parameters-secret branch September 5, 2025 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parameters dont support secret() function

3 participants