microsoft / microsoft/PSRule

Improve output for SARIF to make the recommendation and reason clear

Open
#1,849 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

SARIF output is pulled into downstream tools such as GHAS, when issues are raised anybody reading the details needs to have a clear picture of was it wrong and what steps can be done to fix it.

For example in the following, it is not clear on the next steps or cause of the issue.

screenshot 2024-06-06 at 14 15 22

This is the output from assert that provides more specific information to the issue.

screenshot 2024-06-06 at 14 14 56

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.

Research direction

No source file, entry point, or test is identified in the issue. Start by locating the SARIF output generation path in PSRule and compare its generated details with the examples shown. Done means downstream readers can understand both why the issue was raised and what recommendation or remediation steps to take.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
devops
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.