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
lint issues
Matheus Nogueirae497eeec750a
diff --git a/backend/src/db/migrations/20261014170000_secret-scanning-data-source-scan-options.ts b/backend/src/db/migrations/20261014170000_secret-scanning-data-source-scan-options.tsindex 854497d259..b31dc31674 100644--- a/backend/src/db/migrations/20261014170000_secret-scanning-data-source-scan-options.ts+++ b/backend/src/db/migrations/20261014170000_secret-scanning-data-source-scan-options.ts@@ -18,13 +18,13 @@ export async function up(knex: Knex): Promise<void> {// isAutoScanEnabled gated both the initial full scan and push-triggered scans, so both new flags inherit it.// Discovery was implicit in an include list of ["*"], which also picks up repositories added later.- await knex(TableName.SecretScanningDataSource).update({- isHistoricalScanEnabled: knex.raw(`COALESCE("isAutoScanEnabled", true)`),- isScanNewCommitsEnabled: knex.raw(`COALESCE("isAutoScanEnabled", true)`),- isDiscoveryEnabled: knex.raw(- `COALESCE(config->'includeRepos' @> '["*"]'::jsonb OR config->'includeProjects' @> '["*"]'::jsonb, false)`- )- });+ await knex.raw(+ `UPDATE ?? SET+ "isHistoricalScanEnabled" = COALESCE("isAutoScanEnabled", true),+ "isScanNewCommitsEnabled" = COALESCE("isAutoScanEnabled", true),+ "isDiscoveryEnabled" = COALESCE(config->'includeRepos' @> '["*"]'::jsonb OR config->'includeProjects' @> '["*"]'::jsonb, false)`,+ [TableName.SecretScanningDataSource]+ );}export async function down(knex: Knex): Promise<void> {diff --git a/frontend/src/components/secret-scanning/forms/CreateSecretScanningDataSourceForm.tsx b/frontend/src/components/secret-scanning/forms/CreateSecretScanningDataSourceForm.tsxindex 357a9feb9a..55afe47381 100644--- a/frontend/src/components/secret-scanning/forms/CreateSecretScanningDataSourceForm.tsx+++ b/frontend/src/components/secret-scanning/forms/CreateSecretScanningDataSourceForm.tsx@@ -68,7 +68,7 @@ const getDefaultValues = (type: SecretScanningDataSource) =>isScanNewCommitsEnabled: true,isDiscoveryEnabled: doesDataSourceSupportDiscovery({ type, config: getDefaultConfig(type) }),config: getDefaultConfig(type)- }) as TSecretScanningDataSourceForm;+ }) as Partial<TSecretScanningDataSourceForm>;const CONNECTION_STEP_FIELDS: Record<SecretScanningDataSource, TFormField[]> = {[SecretScanningDataSource.GitHub]: ["connection"],diff --git a/frontend/src/components/secret-scanning/forms/SecretScanningDataSourceConfigFields/SecretScanningDataSourceConfigFields.tsx b/frontend/src/components/secret-scanning/forms/SecretScanningDataSourceConfigFields/SecretScanningDataSourceConfigFields.tsxindex 3ead03b137..5fde81e5e3 100644--- a/frontend/src/components/secret-scanning/forms/SecretScanningDataSourceConfigFields/SecretScanningDataSourceConfigFields.tsx+++ b/frontend/src/components/secret-scanning/forms/SecretScanningDataSourceConfigFields/SecretScanningDataSourceConfigFields.tsx@@ -113,7 +113,7 @@ export const SecretScanningDataSourceScanFields = () => {description={supportsDiscovery? `Automatically enable scanning for new ${pluralNoun} added to ${platform}.`- : `Select a group in the previous step to enable this. GitLab only reports new projects through group webhooks.`+ : "Select a group in the previous step to enable this. GitLab only reports new projects through group webhooks."}/></FieldGroup>diff --git a/frontend/src/components/secret-scanning/forms/index.ts b/frontend/src/components/secret-scanning/forms/index.tsindex d76d3c9013..c7cb03851d 100644--- a/frontend/src/components/secret-scanning/forms/index.ts+++ b/frontend/src/components/secret-scanning/forms/index.ts@@ -1,2 +1,2 @@-export * from "./SecretScanningDataSourceForm";export * from "./CreateSecretScanningDataSourceForm";+export * from "./SecretScanningDataSourceForm";diff --git a/frontend/src/components/v3/generic/Button/getButtonLoaderVariant.ts b/frontend/src/components/v3/generic/Button/getButtonLoaderVariant.tsindex 86bc4ed290..76b003128b 100644--- a/frontend/src/components/v3/generic/Button/getButtonLoaderVariant.ts+++ b/frontend/src/components/v3/generic/Button/getButtonLoaderVariant.ts@@ -19,6 +19,7 @@ const buttonLoaderVariants = {warning: "warning",pam: "pam",av: "av",+ ss: "ss",product: "product"} satisfies Record<NonNullable<ButtonProps["variant"] | IconButtonProps["variant"]>, LoaderVariant>;diff --git a/frontend/src/components/v3/generic/Loader/Loader.tsx b/frontend/src/components/v3/generic/Loader/Loader.tsxindex 7b8fafa5dc..fc88c843eb 100644--- a/frontend/src/components/v3/generic/Loader/Loader.tsx+++ b/frontend/src/components/v3/generic/Loader/Loader.tsx@@ -14,6 +14,7 @@ const colorStyles = {warning: "text-warning",pam: "text-product-pam",av: "text-product-av",+ ss: "text-product-ss",product: "product-color text-(--product-color-resolved)"};diff --git a/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/AddSecretScanningResourceSheet.tsx b/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/AddSecretScanningResourceSheet.tsxindex f4bc27bf71..9c343b56f5 100644--- a/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/AddSecretScanningResourceSheet.tsx+++ b/frontend/src/pages/secret-scanning/SecretScanningDataSourceByIdPage/components/AddSecretScanningResourceSheet.tsx@@ -160,7 +160,7 @@ export const AddSecretScanningResourceSheet = ({ dataSource, isOpen, onOpenChang<SheetDescription>Enable scanning for a {resourceDetails.singularNoun} from {dataSource.name}.{dataSource.isHistoricalScanEnabled &&- ` Its full history is scanned as soon as it's added.`}+ " Its full history is scanned as soon as it's added."}</SheetDescription></SheetHeader><div className="flex flex-1 flex-col gap-3 overflow-y-auto p-4">