This commit is contained in:
x032205
2025-07-07 20:26:35 -04:00
parent 64744d042d
commit 9e896563ed
11 changed files with 34 additions and 14 deletions
@@ -149,9 +149,9 @@ export const BitbucketSecretScanningFactory = () => {
filteredRepos.push(...repos.filter((repo) => includeRepos.includes(repo.full_name)));
}
return filteredRepos.map(({ full_name }) => ({
return filteredRepos.map(({ full_name, uuid }) => ({
name: full_name,
externalId: full_name,
externalId: uuid,
type: SecretScanningResource.Repository
}));
};
@@ -188,7 +188,7 @@ export const BitbucketSecretScanningFactory = () => {
> = ({ repository }) => {
return {
name: repository.full_name,
externalId: repository.full_name,
externalId: repository.uuid,
type: SecretScanningResource.Repository
};
};
@@ -9,6 +9,14 @@ export const SecretScanningDataSourceSchema = z.discriminatedUnion("type", [
]);
export const SecretScanningFindingSchema = z.discriminatedUnion("dataSourceType", [
GitHubFindingSchema,
BitbucketFindingSchema
GitHubFindingSchema.describe(
JSON.stringify({
title: "GitHub"
})
),
BitbucketFindingSchema.describe(
JSON.stringify({
title: "Bitbucket"
})
)
]);