MCPcopy Index your code
hub / github.com/simstudioai/sim / normalizeVantaVulnerableAssetScanner

Function normalizeVantaVulnerableAssetScanner

apps/sim/tools/vanta/utils.ts:734–755  ·  view source on GitHub ↗
(resource: JsonRecord)

Source from the content-addressed store, hash-verified

732}
733
734function normalizeVantaVulnerableAssetScanner(resource: JsonRecord): VantaVulnerableAssetScanner {
735 return {
736 resourceId: getString(resource.resourceId),
737 integrationId: getString(resource.integrationId),
738 targetId: getString(resource.targetId),
739 imageDigest: getString(resource.imageDigest),
740 imagePushedAtDate: getString(resource.imagePushedAtDate),
741 imageTags: getStringArray(resource.imageTags),
742 assetTags: getRecordArray(resource.assetTags).map((tag) => ({
743 key: getString(tag.key),
744 value: getString(tag.value),
745 })),
746 parentAccountOrOrganization: getString(resource.parentAccountOrOrganization),
747 biosUuid: getString(resource.biosUuid),
748 ipv4s: getStringArray(resource.ipv4s),
749 ipv6s: getStringArray(resource.ipv6s),
750 macAddresses: getStringArray(resource.macAddresses),
751 hostnames: getStringArray(resource.hostnames),
752 fqdns: getStringArray(resource.fqdns),
753 operatingSystems: getStringArray(resource.operatingSystems),
754 }
755}
756
757export function normalizeVantaVulnerableAsset(resource: JsonRecord): VantaVulnerableAsset {
758 return {

Callers

nothing calls this directly

Calls 3

getStringFunction · 0.70
getStringArrayFunction · 0.70
getRecordArrayFunction · 0.70

Tested by

no test coverage detected