Skip to content

Commit

Permalink
updated output
Browse files Browse the repository at this point in the history
  • Loading branch information
maira-samtek committed Dec 17, 2024
1 parent b53c7f5 commit 9f6d0b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,14 +228,15 @@ async function run(): Promise<void> {
)
const resultUpdates = await secHub.sync()
const endDateTime = new Date()
endDateTime.setMinutes(endDateTime.getMinutes() + 10)
const startFormatted = startDateTime
.toISOString()
.replace('T', ' ')
.substring(0, 19) // "2024-12-17 12:00:00"
.substring(0, 16) // "2024-12-17 12:00"
const endFormatted = endDateTime
.toISOString()
.replace('T', ' ')
.substring(0, 19) // "2024-12-17 12:05:00"
.substring(0, 16) // "2024-12-17 12:10"
const accountId = await secHub.getAWSAccountID()
const identifyingLabels: string[] = [accountId, secHub.region]
const labelQueries = [...identifyingLabels, 'security-hub']
Expand Down

0 comments on commit 9f6d0b7

Please sign in to comment.