Skip to content

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

add comment

Matheus Nogueira94bb80a89746
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 c9ca9478f1..6fa831c4f6 100644
--- a/backend/src/services/app-connection/bitbucket/bitbucket-connection-fns.ts
+++ b/backend/src/services/app-connection/bitbucket/bitbucket-connection-fns.ts
@@ -172,6 +172,8 @@ export const listBitbucketEnvironments = async (
Accept: "application/json"
};
+ // We still need to paginate this one as it's the only endpoint we use that doesn't support searching
+ // https://developer.atlassian.com/cloud/bitbucket/rest/api-group-deployments/#api-repositories-workspace-repo-slug-environments-get
return paginateBitbucketRequest<TBitbucketEnvironment>(
`${IntegrationUrls.BITBUCKET_API_URL}/2.0/repositories/${encodeURIComponent(workspaceSlug)}/${encodeURIComponent(repositorySlug)}/environments?pagelen=${BITBUCKET_PAGE_SIZE}`,
headers