microsoft / microsoft/PSRule

Run multiple baselines

Open
#2,611 0 comments 0 reactions 1 assignee View on GitHub

@ElinoraWhite is already working on this.

Since Jan 5, 2025.

feature: baselines
Dominant language
C#
Stars
474
Forks
65
Avg merge
22h 25m
Merged PRs (30d)
26

Description

Currently you can only run PSRule with one baseline at a time.

There are several scenarios that running multiple baselines in a single execution would be ideal.

When PSRule is loaded there is a small amount of overhead in both PSRule and CI systems that makes multiple runs less performant as compared to a single execution.

Cases for multiple baselines:

  1. Using a baseline from two different modules.
  2. Using two different baselines in combination i.e. WAF Security and Reliability.
  3. Using a required and optional baseline. i.e. This is the minimum mandatory rules that will break the pipeline vs these are the nice to haves that are ideal but won't break the pipeline.

(2) An alternative approach is to use a custom baseline instead.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.