Skip to content

Conversation

@saron-deb
Copy link
Contributor

@saron-deb saron-deb commented Jul 13, 2021

What changed? Why?
Adding Salus enforced bool under tool.driver.properties in SARIF in order to update Salus-bots display and cause less confusion surrounding active/enforced scanners

Notes to reviewers

How has it been tested?
Unit testing

Helpful Links

General troubleshooting and FAQ

Change management (definitions)
type=routine
risk=low
impact=sev5

Automerge
automerge=false

@saron-deb saron-deb self-assigned this Jul 16, 2021
"rules" => rules
"rules" => rules,
"properties" => {
"salusEnforced": @required || false
Copy link
Contributor

Choose a reason for hiding this comment

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

IIRC the || false was to ensure we had proper support here for unsupported (scanners that don't yet have a sarif adapter present) scanners. If that's the case can you include one spec for that case? Beyond that looks great!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep that's the case, actually I just remembered, the unsupported scanner case is already being tested in base_sarif_spec.rb around lines 12-20. I'd be happy to add another spec if this is insufficient!

@cb-heimdall cb-heimdall dismissed joshuaostrom-cb’s stale review July 21, 2021 20:37

Approved review 710656806 from joshua-ostrom is now dismissed due to new commit. Re-request for approval.

@cb-heimdall cb-heimdall dismissed joshuaostrom-cb’s stale review July 21, 2021 21:56

Approved review 712224772 from joshua-ostrom is now dismissed due to new commit. Re-request for approval.

@joshuaostrom-cb joshuaostrom-cb merged commit 5ccf385 into master Jul 22, 2021
@joshuaostrom-cb joshuaostrom-cb deleted the SalusEnforcedAddition branch July 22, 2021 11:37
@ghbren ghbren mentioned this pull request Jul 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants