diff --git a/.github/actions/handle-fix-commit/action.yaml b/.github/actions/handle-fix-commit/action.yaml index 21bdff620..6bc7aff07 100644 --- a/.github/actions/handle-fix-commit/action.yaml +++ b/.github/actions/handle-fix-commit/action.yaml @@ -81,9 +81,12 @@ runs: git config --local user.name "github-actions[bot]" git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" - export GITHUB_TOKEN=${{ inputs.token }} trap 'rm -f ~/.git-credentials' EXIT - echo "https://x-access-token:${GITHUB_TOKEN}@github.com" > ~/.git-credentials + rm -f ~/.git-credentials + umask 077 + cat < ~/.git-credentials +https://x-access-token:${{ inputs.token }}@github.com +EOF git config --local credential.helper 'store --file ~/.git-credentials' git add -u