From 19cd1e311c08456f736cc5e6f5c57e2086aeef74 Mon Sep 17 00:00:00 2001 From: mohamedlajmileanix Date: Fri, 12 Jul 2024 10:51:47 +0200 Subject: [PATCH] CID-2744: set installation token expiry --- .../net/leanix/githubagent/services/GitHubScanningService.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/kotlin/net/leanix/githubagent/services/GitHubScanningService.kt b/src/main/kotlin/net/leanix/githubagent/services/GitHubScanningService.kt index e93081b..be72f0f 100644 --- a/src/main/kotlin/net/leanix/githubagent/services/GitHubScanningService.kt +++ b/src/main/kotlin/net/leanix/githubagent/services/GitHubScanningService.kt @@ -30,8 +30,7 @@ class GitHubScanningService( ) { installations.forEach { installation -> val installationToken = gitHubClient.createInstallationToken(installation.id, "Bearer $jwtToken").token - cachingService.set("installationToken:${installation.id}", installationToken, null) - // cachingService.set("installationToken:${installation.id}", installationToken, 3600L) + cachingService.set("installationToken:${installation.id}", installationToken, 3600L) } }