Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
Improve teardown
x0322052648ac1c9057
diff --git a/backend/src/ee/services/secret-scanning-v2/bitbucket/bitbucket-secret-scanning-factory.ts b/backend/src/ee/services/secret-scanning-v2/bitbucket/bitbucket-secret-scanning-factory.tsindex a4d9df9811..80dcddae53 100644--- a/backend/src/ee/services/secret-scanning-v2/bitbucket/bitbucket-secret-scanning-factory.ts+++ b/backend/src/ee/services/secret-scanning-v2/bitbucket/bitbucket-secret-scanning-factory.ts@@ -38,6 +38,7 @@ import {TBitbucketDataSourceWithConnection,TQueueBitbucketResourceDiffScan} from "./bitbucket-secret-scanning-types";+import { logger } from "@app/lib/logger";export const BitbucketSecretScanningFactory = () => {const initialize: TSecretScanningFactoryInitialize<@@ -116,15 +117,19 @@ export const BitbucketSecretScanningFactory = () => {const authHeader = `Basic ${Buffer.from(`${email}:${apiToken}`).toString("base64")}`;- await request.delete(- `${IntegrationUrls.BITBUCKET_API_URL}/2.0/workspaces/${config.workspaceSlug}/hooks/${webhookId}`,- {- headers: {- Authorization: authHeader,- Accept: "application/json"+ try {+ await request.delete(+ `${IntegrationUrls.BITBUCKET_API_URL}/2.0/workspaces/${config.workspaceSlug}/hooks/${webhookId}`,+ {+ headers: {+ Authorization: authHeader,+ Accept: "application/json"+ }}- }- );+ );+ } catch (err) {+ logger.error(`teardown: Bitbucket - Failed to call delete on webhook [webhookId=${webhookId}]`);+ }};const listRawResources: TSecretScanningFactoryListRawResources<TBitbucketDataSourceWithConnection> = async (