From 7ed69aba6bc68f31226ecf8ff38b4b74c3684a97 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Fri, 3 Apr 2026 01:15:08 +0900 Subject: [PATCH] ci: Use credential.helper cache instead of credential.helper store --- .github/workflows/release.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9c294501..05ae117a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -310,19 +310,24 @@ jobs: ) fi - prev_credential_helper=$(git config get --global credential.helper || true) + prev_credential_helper=$(git config get --local credential.helper || true) if [[ -n "${prev_credential_helper}" ]]; then printf 'credential helper is already set (%s)\n' "${prev_credential_helper}" else - ( - set -x - git config --global credential.helper store - ) protocol="${GITHUB_SERVER_URL%%://*}" hostname="${GITHUB_SERVER_URL#*://}" - printf '%s\n' "${protocol}://${GITHUB_ACTOR}:${PUSH_TOKEN}@${hostname}" >~/.git-credentials + ( + set -x + git config --local credential.helper cache + ) + git credential approve <