mirror of
https://github.com/ivuorinen/actions.git
synced 2026-01-26 03:23:59 +00:00
fix(set-git-config): remove credentials cleaning, it's automatic (#321)
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user