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

Commit

Permalink
feat: remove firstCommitTimestamp and hyperlink
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinydzhu committed Apr 8, 2024
1 parent 1acd9e0 commit cfe97ca
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 17 deletions.
2 changes: 0 additions & 2 deletions src/api/secretsCommon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@ export const SecretsScannerFindingEvent = z.object({
startColumn: z.number(),
endColumn: z.number(),
secretHash: z.string(),
hyperlink: z.string(),
isBranchHead: z.boolean().nullish(),
repository: z.string(),
branch: z.string().nullish(),
firstCommitTimestamp: z.string(),
isAllowlisted: z.boolean(),
fileOwners: z.array(FileOwnerSchema).nullable(),
});
10 changes: 0 additions & 10 deletions src/api/secretsEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,6 @@ export const processSecretsEvents = async (
type: FieldType.string,
values: events.map((event) => event.type),
},
{
name: 'branch',
type: FieldType.string,
values: events.map((event) => event.data.branch),
},
{
name: 'commit',
type: FieldType.string,
Expand Down Expand Up @@ -221,11 +216,6 @@ export const processSecretsEvents = async (
type: FieldType.boolean,
values: events.map((event) => event.data.finding.isBranchHead ?? ''),
},
{
name: 'finding_firstCommitTimestamp',
type: FieldType.time,
values: events.map((event) => new Date(event.data.finding.firstCommitTimestamp) ?? undefined),
},
{
name: 'finding_isAllowlisted',
type: FieldType.boolean,
Expand Down
5 changes: 0 additions & 5 deletions src/api/secretsSummary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,6 @@ export const processSecretsSummary = async (
type: FieldType.boolean,
values: parseResult.data.secrets?.map((secret) => secret.isBranchHead),
},
{
name: 'firstCommitTimestamp',
type: FieldType.time,
values: parseResult.data.secrets?.map((secret) => new Date(secret.firstCommitTimestamp)),
},
{
name: 'isAllowlisted',
type: FieldType.boolean,
Expand Down

0 comments on commit cfe97ca

Please sign in to comment.