Azure / Azure/template-analyzer
[BUG] Warning for all references to module outputs
- Dominant language
- C#
- Stars
- 143
- Forks
- 47
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the bug
Referencing outputs from a Bicep module produces a warning:
```
Warning: The parsing of the template output named failed`
```
For a large codebase we get thousands of these warnings, making the output huge. This feels like a bug.
### Expected behavior
I expect that the output either can be parsed, or if it is impossible to handle outputs like this it should be possible to silence these warnings.
### Reproduction Steps
Given the following `main.bicep` file:
```bicep
module dummy 'dummy.bicep' = {
name: 'dummy'
params: {
dummy: 'dummy'
}
}
output dummy string = dummy.outputs.dummy
```
And the following module `dummy.bicep`:
```bicep
param dummy string
output dummy string = dummy
```
Then run TemplateAnalyzer on `main.bicep`.
### Environment
TemplateAnalyzer version `0.7.0+582d9199d19acc60716af8f0874dc51cec6aa01b`
Same issue on my local system (Ubuntu WSL on Windows) and in an Azure DevOps pipeline using the `MicrosoftSecurityDevOps@1` task.
Contributor guide
Assessment
This issue has not been assessed yet.