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
Greptile review comments and lint
x0322057a13c2705599
diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateDynamicSecretForm/CreateDynamicSecretForm.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateDynamicSecretForm/CreateDynamicSecretForm.tsxindex 1d3b77d00c..9e79cd0c82 100644--- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateDynamicSecretForm/CreateDynamicSecretForm.tsx+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateDynamicSecretForm/CreateDynamicSecretForm.tsx@@ -26,6 +26,7 @@ import { AzureEntraIdInputForm } from "./AzureEntraIdInputForm";import { CassandraInputForm } from "./CassandraInputForm";import { ElasticSearchInputForm } from "./ElasticSearchInputForm";import { GcpIamInputForm } from "./GcpIamInputForm";+import { GithubInputForm } from "./GithubInputForm";import { KubernetesInputForm } from "./KubernetesInputForm";import { LdapInputForm } from "./LdapInputForm";import { MongoAtlasInputForm } from "./MongoAtlasInputForm";@@ -38,7 +39,6 @@ import { SnowflakeInputForm } from "./SnowflakeInputForm";import { SqlDatabaseInputForm } from "./SqlDatabaseInputForm";import { TotpInputForm } from "./TotpInputForm";import { VerticaInputForm } from "./VerticaInputForm";-import { GithubInputForm } from "./GithubInputForm";type Props = {isOpen?: boolean;diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateDynamicSecretForm/GithubInputForm.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateDynamicSecretForm/GithubInputForm.tsxindex 34620280f5..800bc677a3 100644--- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateDynamicSecretForm/GithubInputForm.tsx+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/ActionBar/CreateDynamicSecretForm/GithubInputForm.tsx@@ -1,4 +1,6 @@import { Controller, useForm } from "react-hook-form";+import { faQuestionCircle } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";import { zodResolver } from "@hookform/resolvers/zod";import { z } from "zod";@@ -15,8 +17,6 @@ import {import { useCreateDynamicSecret } from "@app/hooks/api";import { DynamicSecretProviders } from "@app/hooks/api/dynamicSecret/types";import { WorkspaceEnv } from "@app/hooks/api/types";-import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";-import { faQuestionCircle } from "@fortawesome/free-solid-svg-icons";const formSchema = z.object({provider: z.object({diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/DynamicSecretListView/CreateDynamicSecretLease.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/DynamicSecretListView/CreateDynamicSecretLease.tsxindex 4f41add4e6..133abe58eb 100644--- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/DynamicSecretListView/CreateDynamicSecretLease.tsx+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/DynamicSecretListView/CreateDynamicSecretLease.tsx@@ -624,6 +624,7 @@ export const CreateDynamicSecretLease = ({return <Spinner className="mx-auto h-40 text-mineshaft-700" />;}+ // Github tokens are fixed to 1 hourconst fixedTtl = provider === DynamicSecretProviders.Github;return (diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/DynamicSecretListView/DynamicSecretLease.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/DynamicSecretListView/DynamicSecretLease.tsxindex 0e19ecbb5e..085a061694 100644--- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/DynamicSecretListView/DynamicSecretLease.tsx+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/DynamicSecretListView/DynamicSecretLease.tsx@@ -158,7 +158,7 @@ export const DynamicSecretLease = ({>{(isAllowed) => (<IconButton- ariaLabel="edit-folder"+ ariaLabel="renew-lease"variant="plain"size="sm"className="p-0"diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/DynamicSecretListView/EditDynamicSecretForm/EditDynamicSecretForm.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/DynamicSecretListView/EditDynamicSecretForm/EditDynamicSecretForm.tsxindex b839cf7985..5c4d31dd06 100644--- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/DynamicSecretListView/EditDynamicSecretForm/EditDynamicSecretForm.tsx+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/DynamicSecretListView/EditDynamicSecretForm/EditDynamicSecretForm.tsx@@ -10,6 +10,7 @@ import { EditDynamicSecretAzureEntraIdForm } from "./EditDynamicSecretAzureEntraimport { EditDynamicSecretCassandraForm } from "./EditDynamicSecretCassandraForm";import { EditDynamicSecretElasticSearchForm } from "./EditDynamicSecretElasticSearchForm";import { EditDynamicSecretGcpIamForm } from "./EditDynamicSecretGcpIamForm";+import { EditDynamicSecretGithubForm } from "./EditDynamicSecretGithubForm";import { EditDynamicSecretKubernetesForm } from "./EditDynamicSecretKubernetesForm";import { EditDynamicSecretLdapForm } from "./EditDynamicSecretLdapForm";import { EditDynamicSecretMongoAtlasForm } from "./EditDynamicSecretMongoAtlasForm";@@ -22,7 +23,6 @@ import { EditDynamicSecretSnowflakeForm } from "./EditDynamicSecretSnowflakeFormimport { EditDynamicSecretSqlProviderForm } from "./EditDynamicSecretSqlProviderForm";import { EditDynamicSecretTotpForm } from "./EditDynamicSecretTotpForm";import { EditDynamicSecretVerticaForm } from "./EditDynamicSecretVertica";-import { EditDynamicSecretGithubForm } from "./EditDynamicSecretGithubForm";type Props = {onClose: () => void;diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/DynamicSecretListView/EditDynamicSecretForm/EditDynamicSecretGithubForm.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/DynamicSecretListView/EditDynamicSecretForm/EditDynamicSecretGithubForm.tsxindex f29566625a..d6219d36b5 100644--- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/DynamicSecretListView/EditDynamicSecretForm/EditDynamicSecretGithubForm.tsx+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/DynamicSecretListView/EditDynamicSecretForm/EditDynamicSecretGithubForm.tsx@@ -1,4 +1,6 @@import { Controller, useForm } from "react-hook-form";+import { faQuestionCircle } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";import { zodResolver } from "@hookform/resolvers/zod";import { z } from "zod";@@ -6,8 +8,6 @@ import { createNotification } from "@app/components/notifications";import { Button, FormControl, FormLabel, Input, SecretInput, Tooltip } from "@app/components/v2";import { useUpdateDynamicSecret } from "@app/hooks/api";import { TDynamicSecret } from "@app/hooks/api/dynamicSecret/types";-import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";-import { faQuestionCircle } from "@fortawesome/free-solid-svg-icons";const formSchema = z.object({inputs: z.object({diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/DynamicSecretListView/RenewDynamicSecretLease.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/DynamicSecretListView/RenewDynamicSecretLease.tsxindex f9e91ffd0b..85528a5bc3 100644--- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/DynamicSecretListView/RenewDynamicSecretLease.tsx+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/DynamicSecretListView/RenewDynamicSecretLease.tsx@@ -7,7 +7,7 @@ import { TtlFormLabel } from "@app/components/features";import { createNotification } from "@app/components/notifications";import { Button, FormControl, Input } from "@app/components/v2";import { useRenewDynamicSecretLease } from "@app/hooks/api";-import { DynamicSecretProviders, TDynamicSecret } from "@app/hooks/api/dynamicSecret/types";+import { TDynamicSecret } from "@app/hooks/api/dynamicSecret/types";type Props = {onClose: () => void;