mirror of
https://gitea.com/actions/checkout.git
synced 2026-12-03 01:19:07 +08:00
.
This commit is contained in:
1 parent
c9518fb408
commit
dc519229d3
2 files changed
+6
No files matched your search
@@ -452,6 +452,7 @@ class GitAuthHelper {
|
||||
*/
|
||||
private async removeToken(): Promise<void> {
|
||||
// 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<string>()
|
||||
|
||||
// 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}`)
|
||||
|
||||
Reference in new issue
Block a user