Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

feedback

x032205ffdd4aa97fd6
diff --git a/backend/src/services/app-connection/bitbucket/bitbucket-connection-fns.ts b/backend/src/services/app-connection/bitbucket/bitbucket-connection-fns.ts
index c81d549f8c..646dc595a8 100644
--- a/backend/src/services/app-connection/bitbucket/bitbucket-connection-fns.ts
+++ b/backend/src/services/app-connection/bitbucket/bitbucket-connection-fns.ts
@@ -88,7 +88,6 @@ export const listBitbucketWorkspaces = async (appConnection: TBitbucketConnectio
interface BitbucketPaginatedResponse<T> {
values: T[];
next?: string;
- size?: number;
}
const BITBUCKET_MAX_PAGES = 10;
@@ -130,7 +129,7 @@ export const listBitbucketRepositories = async (appConnection: TBitbucketConnect
const reposByProject = await Promise.all(
projects.map((project) =>
paginateBitbucketRequest<TBitbucketRepo>(
- `${IntegrationUrls.BITBUCKET_API_URL}/2.0/repositories/${encodedSlug}?pagelen=${BITBUCKET_PAGE_SIZE}&sort=slug&q=project.key="${project.key}"`,
+ `${IntegrationUrls.BITBUCKET_API_URL}/2.0/repositories/${encodedSlug}?pagelen=${BITBUCKET_PAGE_SIZE}&sort=slug&q=project.key="${encodeURIComponent(project.key)}"`,
headers
)
)