microsoft / PowerStig

STIG Automation
https://www.powershellgallery.com/packages/PowerSTIG
Other
542 stars 116 forks source link

Add a param to pass a custom rule file path to the STIG constructor #1363

Open ghost opened 2 months ago

ghost commented 2 months ago

There seems to be no way to pass a custom rule file path to the STIG constructor, as the data path is hardcoded:

static $DataPath = (Resolve-Path -Path "$($script:PSScriptRoot)\..\..\StigData\Processed").Path

It would be more convenient from debugging/testing perspective to add a RuleFile param to the STIG constructor.