Azure / Azure/template-analyzer

[BUG] Warning for all references to module outputs

Open
#366 0 comments 0 reactions 0 assignees View on GitHub
🔍 needs-triage bug
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.