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

Commit

Permalink
Merge pull request #187 from JupiterOne/INT-4292-fixLastSeen
Browse files Browse the repository at this point in the history
make asset firstSeen lastSeen human-readable
  • Loading branch information
mdaum authored Aug 5, 2022
2 parents 901bd4a + f11171a commit f059f48
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/gitleaks.yml

This file was deleted.

2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ and this project adheres to

## [Unreleased]

- fix tenable_asset `firstSeen` and `lastSeen` properties to be human-readable

## [8.5.0] 2022-06-08

- move @jupiterone/tenable-client-nodejs to this repo
Expand Down
5 changes: 3 additions & 2 deletions src/steps/vulnerabilities/converters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export function createAssetEntity(
} catch (err) {
logger.warn({ err }, 'Encountered error when checking entity size');
}

return createIntegrationEntity({
entityData: {
source: data,
Expand All @@ -72,8 +73,8 @@ export function createAssetEntity(
terminatedBy: data.terminated_by,
updatedAt: parseTimePropertyValue(data.updated_at),
deletedAt: parseTimePropertyValue(data.deleted_at),
firstSeen: parseTimePropertyValue(data.first_seen),
lastSeen: parseTimePropertyValue(data.last_seen),
firstSeenOn: parseTimePropertyValue(data.first_seen),
lastSeenOn: parseTimePropertyValue(data.last_seen),
firstScanTime: parseTimePropertyValue(data.first_scan_time),
lastScanTime: parseTimePropertyValue(data.last_scan_time),
lastAuthenticatedScanDate: parseTimePropertyValue(
Expand Down

0 comments on commit f059f48

Please sign in to comment.