Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

INT-4161 - Add Property Fields to Rapid7 Findings #72

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

eXtremeX
Copy link
Contributor

@eXtremeX eXtremeX commented Jan 4, 2023

Added

  • Added impact, recommendations, and references to insightvm_finding

Changed

  • Changed insightvm_finding and insightvm_vulnerability's name property to
    use vulnerability.title from the API response

@eXtremeX eXtremeX requested a review from a team as a code owner January 4, 2023 00:01
@VDubber VDubber self-assigned this Jan 6, 2023
@@ -23,7 +23,7 @@
"type-check": "tsc",
"test": "jest",
"test:env": "LOAD_ENV=1 yarn test",
"test:no-tls-verify": "NODE_TLS_REJECT_UNAUTHORIZED=0 && yarn test",
"test:no-tls-verify": "NODE_TLS_REJECT_UNAUTHORIZED=0 yarn test",
Copy link

Choose a reason for hiding this comment

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

Thank you!

src/client.ts Outdated
}
return rec;
} else {
return 'No recommendation available';
Copy link

Choose a reason for hiding this comment

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

return undefined

src/client.ts Outdated
const references =
refs?.page?.totalResources > 0
? refs.resources.map((r) => r.advisory?.href).join('\n')
: 'No references available';
Copy link

Choose a reason for hiding this comment

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

undefined is preferred over No references available

src/client.ts Outdated
const impact =
exploits?.page?.totalResources > 0
? exploits.resources.map((r) => r.title || '').join('\n')
: 'No impact information available';
Copy link

Choose a reason for hiding this comment

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

undefined is preferred over No impact ...

src/client.ts Outdated
: 'No impact information available';
const references =
refs?.page?.totalResources > 0
? refs.resources.map((r) => r.advisory?.href).join('\n')
Copy link

Choose a reason for hiding this comment

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

Instead of joining the hrefs, please map to an array of strings.

@eXtremeX eXtremeX requested a review from VDubber February 20, 2023 19:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants