From dc519229d3bf63fba02c3d2082153bd4ed299ca6 Mon Sep 17 00:00:00 2001 From: eric sciple Date: Fri, 17 Oct 2025 00:24:10 +0000 Subject: [PATCH] . --- dist/index.js | 3 +++ src/git-auth-helper.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/dist/index.js b/dist/index.js index 5725651..00553d6 100644 --- a/dist/index.js +++ b/dist/index.js @@ -481,11 +481,13 @@ class GitAuthHelper { return __awaiter(this, void 0, void 0, function* () { var _a; // Remove HTTP extra header + core.info("Removing HTTP extra header"); yield this.removeGitConfig(this.tokenConfigKey); yield this.removeSubmoduleGitConfig(this.tokenConfigKey); // Collect credentials config paths that need to be removed const credentialsPaths = new Set(); // Remove includeIf entries that point to git-credentials-*.config files + core.info("Removing includeIf entries pointing to credentials config files"); const mainCredentialsPaths = yield this.removeIncludeIfCredentials(); mainCredentialsPaths.forEach(path => credentialsPaths.add(path)); // Remove submodule includeIf entries that point to git-credentials-*.config files @@ -497,6 +499,7 @@ class GitAuthHelper { // Remove credentials config files for (const credentialsPath of credentialsPaths) { try { + core.info(`Removing credentials config '${credentialsPath}'`); yield io.rmRF(credentialsPath); } catch (err) { diff --git a/src/git-auth-helper.ts b/src/git-auth-helper.ts index f7c8d8a..5a3d388 100644 --- a/src/git-auth-helper.ts +++ b/src/git-auth-helper.ts @@ -452,6 +452,7 @@ class GitAuthHelper { */ private async removeToken(): Promise { // Remove HTTP extra header + core.info("Removing HTTP extra header") await this.removeGitConfig(this.tokenConfigKey) await this.removeSubmoduleGitConfig(this.tokenConfigKey) @@ -459,6 +460,7 @@ class GitAuthHelper { const credentialsPaths = new Set() // Remove includeIf entries that point to git-credentials-*.config files + core.info("Removing includeIf entries pointing to credentials config files") const mainCredentialsPaths = await this.removeIncludeIfCredentials() mainCredentialsPaths.forEach(path => credentialsPaths.add(path)) @@ -472,6 +474,7 @@ class GitAuthHelper { // Remove credentials config files for (const credentialsPath of credentialsPaths) { try { + core.info(`Removing credentials config '${credentialsPath}'`) await io.rmRF(credentialsPath) } catch (err) { core.debug(`${(err as any)?.message ?? err}`)