You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently a default baseline can be configured by editing the module manifest.
@{
# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.PrivateData=@{
PSData=@{
# Tags applied to this module. These help with module discovery in online galleries.Tags=@('PSRule-rules')
}
PSRule=@{
Baseline='Enterprise.Default'
}
}
}
Adding a PSRule property in the manifest is problematic because the Update-ModuleManifest cmdlet reformats this.
Module configuration support was added later which provides an alternative mechanism to configure the default baseline.
For example:
---
# Synopsis: Example module configuration for Enterprise.Rules moduleapiVersion: github.com/microsoft/PSRule/v1kind: ModuleConfigmetadata:
name: Enterprise.Rulesspec:
rule:
baseline: 'Enterprise.Default'
If default baseline in both module manifest and module configuration are set, Module configuration should take priority.
The text was updated successfully, but these errors were encountered:
Currently a default baseline can be configured by editing the module manifest.
Adding a PSRule property in the manifest is problematic because the
Update-ModuleManifest
cmdlet reformats this.Module configuration support was added later which provides an alternative mechanism to configure the default baseline.
For example:
If default baseline in both module manifest and module configuration are set, Module configuration should take priority.
The text was updated successfully, but these errors were encountered: