From b06748cbef1036150cac147e7da1cf1b2d73cf2b Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Tue, 28 Oct 2025 18:35:58 +0200 Subject: [PATCH] fix(set-git-config): remove credentials cleaning, it's automatic (#321) --- set-git-config/action.yml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/set-git-config/action.yml b/set-git-config/action.yml index 83855d1..1d3dc71 100644 --- a/set-git-config/action.yml +++ b/set-git-config/action.yml @@ -88,16 +88,6 @@ runs: GIT_USERNAME="$VALIDATED_GIT_USERNAME" GIT_EMAIL="$VALIDATED_GIT_EMAIL" - # Function to clean up Git config - cleanup_git_config() { - git config --local --unset-all "url.https://x-access-token:${TOKEN}@github.com/.insteadof" || true - git config --local --unset-all "user.name" || true - git config --local --unset-all "user.email" || true - } - - # Set up trap to ensure cleanup on exit - trap cleanup_git_config EXIT - # Store token in variable to avoid repeated exposure TOKEN="$GITHUB_TOKEN"