Skip to content

[BUG] Template Analyzer doesn't understand languageVersion 2.0 #391

@JohnathonMohr

Description

@JohnathonMohr

Describe the bug

While #390 tracks supporting these kinds of templates for analysis, if this kind of template is encountered currently, some new features break some assumptions in template parsing, and scanning fails; specifically, the assumption that "resources" is an array is definitely broken.

Expected behavior

Ideally, these templates should be supported and scanned appropriately. At the very least, these should be detected and gracefully fail (with an understandable message) instead of throwing an exception and failing.

Reproduction Steps

Scan any template that uses languageVersion 2.0 which has at least one resource.

Environment

No response

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