Azure / PSRule.Rules.Azure

Rules to validate Azure resources and infrastructure as code (IaC) using PSRule.
https://azure.github.io/PSRule.Rules.Azure/
MIT License
394 stars 85 forks source link

Update binding for File input support in PSRule v0.20.0 #480

Closed BernieWhite closed 3 years ago

BernieWhite commented 4 years ago

PSRule v0.20.0 improves support for repository scanning and has new data types that expose a DisplayName for file info.

Using the DisplayName property provides a relative path with is easier to read than a full path on a CI host.

Existing:

/home/vsts/work/1/s/templates/keyvault/v1/template.json

With DisplayName:

templates/keyvault/v1/template.json

Binding options in module configuration need to be updated to take advantage of this feature.

BernieWhite commented 3 years ago

Custom binding configuration is overriding automatic binding with target info for InputFileInfo because of a clash on the Name property that was intended to bind the resource name.

This feature require the following issue to be completed microsoft/PSRule#670