From 1b88572b3b97868e44eda1b31a1a943e14ee48a1 Mon Sep 17 00:00:00 2001 From: Tom Keller Date: Thu, 9 Jul 2026 12:25:02 -0700 Subject: [PATCH] fix: attach git credentials before Tag Major Version push The Tag Major Version step ran 'git push origin' after Checkout Again re-cloned with persist-credentials: false, leaving the remote without credentials. This caused 'fatal: could not read Username' (exit 128) on the first release. Set the authenticated remote URL using OSDS_ACCESS_TOKEN before pushing tags, mirroring the Update README step. --- .github/workflows/release-please.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 08e27e9..056ce61 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -55,6 +55,8 @@ run: | git config user.name "GitHub Actions" git config user.email "github-aws-sdk-osds-automation@amazon.com" + echo "::add-mask::${{ env.OSDS_ACCESS_TOKEN }}" + git remote set-url origin https://${{ env.OSDS_ACCESS_TOKEN }}@github.com/aws-actions/configure-aws-credentials.git if git rev-parse "v${{ steps.release.outputs.major }}" >/dev/null 2>&1; then git tag -d "v${{ steps.release.outputs.major }}" git push origin ":v${{ steps.release.outputs.major }}"