microsoft / ps-rule

Validate infrastructure as code (IaC) and DevOps repositories using GitHub Actions.
https://github.com/marketplace/actions/psrule
MIT License
77 stars 14 forks source link

Add support for alternative option file #155

Closed BernieWhite closed 2 years ago

BernieWhite commented 2 years ago

Currently PSRule will automatically detect and use ps-rule.yaml for options from the current working path when the action is run.

In some cases it may be desirable to have an options file for different use cases. While Assert-PSRule exposes an -Option parameter that can be set to an alternative file path, it is not currently exposed as an option that can be set in the pipeline.

Adding an additional parameter to set the option file would be useful for some use cases.