Repository navigation
fix: compile Bicep sources in generated CI templates - #152
Merged
Merged
Conversation
Akshay Rohilla (akshayrohilla)
approved these changes
Nov 20, 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.
Overview/Summary
Fix generated GitHub Actions and Azure DevOps Bicep CI steps that report success without compiling any source files because discovery selects and then excludes the same
*.biceppattern.Fixes Azure/Azure-Landing-Zones#4348
This PR fixes/adds/changes/removes
-Exclude '*.bicep'from source discovery in both CI templates.-Fileso matching directories, including the.bicepdirectory itself, are not passed to the compiler..bicepcache-path exclusion, and compiler error handling. Optional.bicepparam/build-paramssupport is not included in this focused fix.Breaking Changes
None to the template interface. CI now compiles source files as intended, so existing Bicep errors that were previously skipped will correctly fail validation.
Testing Evidence
Locally tested the actual PowerShell build steps extracted from both YAML templates using PowerShell 7 on Windows and Bicep CLI 0.46.1. All six scenarios passed, three per platform:
.bicepcache directory does not fail this case.Both YAML templates parse after removing their Terraform loop directives for isolated script extraction.
git diff --checkpasses. The production diff is limited to one discovery command in each template.No Azure resources were deployed. Hosted CI, Linux execution, complete Terraform template rendering, and generated-pipeline deployment E2E have not been independently validated by these local tests.
As part of this Pull Request I have
main.