-
Notifications
You must be signed in to change notification settings - Fork 5
INT-4161 - Add Property Fields to Rapid7 Findings #72
base: main
Are you sure you want to change the base?
INT-4161 - Add Property Fields to Rapid7 Findings #72
Conversation
@@ -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", |
There was a problem hiding this comment.
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'; |
There was a problem hiding this comment.
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'; |
There was a problem hiding this comment.
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'; |
There was a problem hiding this comment.
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') |
There was a problem hiding this comment.
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.
Added
impact
,recommendations
, andreferences
toinsightvm_finding
Changed
insightvm_finding
andinsightvm_vulnerability
'sname
property touse
vulnerability.title
from the API response