Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Added baseTime parameter overwrite to CI (#2740)
## Description Many of our test cases implement the parameter `param baseTime string = utcNow('u')` to generate unique names. While a good idea in theory, it has the flaw that also each retry will lead to a new value which can cause re-runs to fail if for example a key vault referenced for CMK suddenly changes. The proposed solution is to set the value once per pipeline run in the workflow and hence overwrite the default value of each template IF the template contains the `baseTime` parameter. ## Pipeline Reference <!-- Insert your Pipeline Status Badge below --> | Pipeline | | -------- | | [![avm.res.compute.disk-encryption-set](https://github.com/AlexanderSehr/bicep-registry-modules/actions/workflows/avm.res.compute.disk-encryption-set.yml/badge.svg?branch=users%2Falsehr%2FbaseTimeOverwrite&event=workflow_dispatch)](https://github.com/AlexanderSehr/bicep-registry-modules/actions/workflows/avm.res.compute.disk-encryption-set.yml) (has `baseTime` parameter) | | [![avm.res.analysis-services.server](https://github.com/AlexanderSehr/bicep-registry-modules/actions/workflows/avm.res.analysis-services.server.yml/badge.svg?branch=users%2Falsehr%2FbaseTimeOverwrite&event=workflow_dispatch)](https://github.com/AlexanderSehr/bicep-registry-modules/actions/workflows/avm.res.analysis-services.server.yml) (does not have the `baseTime` parameter) | ## Type of Change <!-- Use the checkboxes [x] on the options that are relevant. --> - [x] Update to CI Environment or utilities (Non-module affecting changes) - [ ] Azure Verified Module updates: - [ ] Bugfix containing backwards-compatible bug fixes, and I have NOT bumped the MAJOR or MINOR version in `version.json`: - [ ] Someone has opened a bug report issue, and I have included "Closes #{bug_report_issue_number}" in the PR description. - [ ] The bug was found by the module author, and no one has opened an issue to report it yet. - [ ] Feature update backwards compatible feature updates, and I have bumped the MINOR version in `version.json`. - [ ] Breaking changes and I have bumped the MAJOR version in `version.json`. - [ ] Update to documentation --------- Co-authored-by: Erika Gressi <[email protected]> Co-authored-by: Maher Aldineh <[email protected]>
- Loading branch information