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

✨ Support multiple rule names for AppScan #428

Merged
merged 2 commits into from
Jul 23, 2024

Conversation

ryandens
Copy link
Member

  • ✨ support muitiple rule names in AppScan
  • 💡 Improve docs for AppScan getRule accessor

Copy link

sonarcloud bot commented Jul 23, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

@ryandens ryandens requested a review from nahsra July 23, 2024 12:51
.toInstance(map.getOrDefault(providedAppScanScan.ruleName(), RuleSarif.EMPTY));
} else if (providedAppScanScan.ruleNames().length > 0) {

RuleSarif ruleSarif = RuleSarif.EMPTY;
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure I understand this logic. We loop through the names and match/break on the first one?

I was expecting this would look much more like "merge N results together" kind of change.

Copy link
Member Author

Choose a reason for hiding this comment

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

Typically, we see the different names as a result of different kinds of scans (e.g. from source or from a binary), so I wouldn't expect to see a SARIF with results from multiple of the names specified on the annotation in the same SARIF file.

In general, I thought we were trying to avoid merging SARIF at this stage?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, true. It will only be one or the other, you're right.

@ryandens ryandens merged commit bf886d3 into main Jul 23, 2024
8 checks passed
@ryandens ryandens deleted the ryandens/appscan-multiple-rulenames branch July 23, 2024 13:17
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