Skip to content

[BUG] Warning for all references to module outputs #366

@mattias-fjellstrom

Description

@mattias-fjellstrom

Describe the bug

Referencing outputs from a Bicep module produces a warning:

Warning: The parsing of the template output named <output name> 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:

module dummy 'dummy.bicep' = {
  name: 'dummy'
  params: {
    dummy: 'dummy'
  }
}

output dummy string = dummy.outputs.dummy

And the following module dummy.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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions