Skip to content

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

fix(dynamic-secrets): treat GitHub revocation as no-op (#6915)

Saif Ur Rahmanf351ff1545ca
diff --git a/backend/src/ee/services/dynamic-secret/providers/github.ts b/backend/src/ee/services/dynamic-secret/providers/github.ts
index 408189f56c..71c08b1d8a 100644
--- a/backend/src/ee/services/dynamic-secret/providers/github.ts
+++ b/backend/src/ee/services/dynamic-secret/providers/github.ts
@@ -133,12 +133,9 @@ export const GithubProvider = (): TDynamicProviderFns => {
}
};
- const revoke = async () => {
- // GitHub installation tokens cannot be revoked.
- throw new BadRequestError({
- message:
- "Github dynamic secret does not support revocation because GitHub itself cannot revoke installation tokens"
- });
+ const revoke = async (_inputs: unknown, entityId: string) => {
+ // The token isn't stored at creation time, so we can't call DELETE /installation/token.
+ return { entityId };
};
const renew = async () => {