Skip to content

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

fix(github-org-sync): stop inserting the dropped groups.role column

Scott Wilson3cd3267e7fec
diff --git a/backend/src/ee/services/github-org-sync/github-org-sync-service.ts b/backend/src/ee/services/github-org-sync/github-org-sync-service.ts
index c6d554b92c..8649a335cf 100644
--- a/backend/src/ee/services/github-org-sync/github-org-sync-service.ts
+++ b/backend/src/ee/services/github-org-sync/github-org-sync-service.ts
@@ -540,7 +540,6 @@ export const githubOrgSyncServiceFactory = ({
const newGroups = await groupDAL.insertMany(
newTeams.map((newGroupName) => ({
name: newGroupName,
- role: OrgMembershipRole.Member,
slug: newGroupName,
orgId
})),
@@ -823,7 +822,6 @@ export const githubOrgSyncServiceFactory = ({
const newGroups = await groupDAL.insertMany(
teamsToCreate.map((teamName) => ({
name: teamName,
- role: OrgMembershipRole.Member,
slug: teamName,
orgId: orgPermission.orgId
})),