Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --sarif-group-rules-by-pack flag #546

Merged
merged 1 commit into from
Jun 6, 2021

Conversation

edoardopirovano
Copy link
Contributor

This adds the --sarif-group-rules-by-pack to invocations of database analyze which will result in the SARIF produced having rule objects grouped under the QL pack they correspond to rather than appearing at the top level.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows. This change isn't quite compatible with existing workflows if the users are consuming the SARIF in a way other than uploading it to Code Scanning, as the tool.driver.rules field disappears in favour of <toolComponent>.rules fields. As I understand it we don't support this use case, though.
  • Confirm the readme has been updated if necessary.
  • Confirm the changelog has been updated if necessary.

Copy link
Contributor

@adityasharad adityasharad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Could you please add a change note? You can link to https://codeql.github.com/docs/codeql-cli/manual/database-analyze/#cmdoption-codeql-database-analyze-no-sarif-group-rules-by-pack or https://github.com/github/codeql-cli-binaries/blob/main/CHANGELOG.md#release-251-2021-04-19, or use the text there as a reference while writing the note. I want to make clear that this will not change most behaviour, but the rule objects will be in different places in the SARIF produced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants