Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mattias-fjellstrom opened this issue Jul 3, 2024 · 0 comments
Open

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

mattias-fjellstrom opened this issue Jul 3, 2024 · 0 comments
Labels
bug Something isn't working 🔍 needs-triage

Comments

@mattias-fjellstrom
Copy link

mattias-fjellstrom commented Jul 3, 2024

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.

@mattias-fjellstrom mattias-fjellstrom added bug Something isn't working 🔍 needs-triage labels Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 🔍 needs-triage
Projects
None yet
Development

No branches or pull requests

1 participant