mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
improvement: address greptile feedback
This commit is contained in:
@@ -128,7 +128,7 @@ export const GitLabSecretScanningFactory = ({ appConnectionDAL, kmsService }: TS
|
|||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (error instanceof GitbeakerRequestError) {
|
if (error instanceof GitbeakerRequestError) {
|
||||||
throw new BadRequestError({ message: error.message });
|
throw new BadRequestError({ message: `${error.message}: ${error.cause?.description ?? "Unknown Error"}` });
|
||||||
}
|
}
|
||||||
|
|
||||||
throw error;
|
throw error;
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ export const gitlabSecretScanningService = (
|
|||||||
logger.warn(
|
logger.warn(
|
||||||
`secretScanningV2PushEvent: GitLab - Insufficient data [changes=${
|
`secretScanningV2PushEvent: GitLab - Insufficient data [changes=${
|
||||||
payload.total_commits_count ?? 0
|
payload.total_commits_count ?? 0
|
||||||
}] [projectName=${payload.project.path_with_namespace}] [projectId=${payload.project.id}]`
|
}] [projectName=${payload.project?.path_with_namespace ?? "unknown"}] [projectId=${payload.project?.id ?? "unknown"}]`
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,8 +29,6 @@ export const GitLabDataSourceConfigFields = () => {
|
|||||||
}
|
}
|
||||||
>();
|
>();
|
||||||
|
|
||||||
console.log(formState);
|
|
||||||
|
|
||||||
const connectionId = useWatch({ control, name: "connection.id" });
|
const connectionId = useWatch({ control, name: "connection.id" });
|
||||||
const isUpdate = Boolean(watch("id"));
|
const isUpdate = Boolean(watch("id"));
|
||||||
|
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ export const RESOURCE_DESCRIPTION_HELPER: Record<
|
|||||||
pluralNoun: "projects",
|
pluralNoun: "projects",
|
||||||
singularNoun: "project",
|
singularNoun: "project",
|
||||||
pluralTitle: "Projects",
|
pluralTitle: "Projects",
|
||||||
singularTitle: "project"
|
singularTitle: "Project"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user