-
Notifications
You must be signed in to change notification settings - Fork 60
Labels
enhancementNew feature or requestNew feature or requestfeature: baselinesIssues that affect baselinesIssues that affect baselines
Milestone
Description
PSRule v2 introduced a severity level for rules that can be configured as Error, Warning, or Information.
The Level can be defined on each rule or inherits from the default Error level.
It would be helpful for some scenarios to be able to override the severity level for rules with a baseline.
Please 👍 if you have a specific requirement for this issue.
Update 2023-05-07
A baseline can override the severity by specifying the name of the rule and the severity level.
---
# Synopsis: A custom baseline.
apiVersion: github.com/microsoft/PSRule/v1
kind: Baseline
metadata:
name: Corp.Azure
spec:
rule:
tag:
release: GA
override:
level:
Azure.APIM.APIDescriptors: Information
Azure.Template.UseLocationParameter: ErrorUpdate 2023-08-28
To support reporting of this we should include ruleConfigurationOverrides in SARIF to identify and rules that have been overridden.
rbnmk
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestfeature: baselinesIssues that affect baselinesIssues that affect baselines