Skip to content

Fix git push authentication failure in release workflow#3

Merged
volodymyr-memsql merged 5 commits into
mainfrom
copilot/fix-release-deletion-error
Feb 18, 2026
Merged

Fix git push authentication failure in release workflow#3
volodymyr-memsql merged 5 commits into
mainfrom
copilot/fix-release-deletion-error

Conversation

Copilot AI commented Feb 18, 2026

Copy link
Copy Markdown

The workflow failed when pushing tags with fatal: could not read Username for 'https://github.com': No such device or address. The git push origin command couldn't authenticate over HTTPS because no credentials were configured.

Changes

  • Configure git credential helper to cache authentication in memory (300s timeout)
  • Provide GitHub token via git credential approve using here-document syntax
  • Token stays out of command-line arguments and git URLs
git config --global credential.helper 'cache --timeout=300'
git credential approve <<EOF
protocol=https
host=github.com
username=x-access-token
password=${GH_TOKEN}
EOF
git push origin "${TAG_NAME}"

The credential helper approach is more secure than embedding tokens in URLs and follows GitHub Actions best practices.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 4 commits February 18, 2026 15:06
Co-authored-by: volodymyr-memsql <57520563+volodymyr-memsql@users.noreply.github.com>
Co-authored-by: volodymyr-memsql <57520563+volodymyr-memsql@users.noreply.github.com>
Co-authored-by: volodymyr-memsql <57520563+volodymyr-memsql@users.noreply.github.com>
Co-authored-by: volodymyr-memsql <57520563+volodymyr-memsql@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix error when checking for existing releases Fix git push authentication failure in release workflow Feb 18, 2026
@volodymyr-memsql volodymyr-memsql marked this pull request as ready for review February 18, 2026 15:12
@volodymyr-memsql volodymyr-memsql merged commit ef0d95a into main Feb 18, 2026
@volodymyr-memsql volodymyr-memsql deleted the copilot/fix-release-deletion-error branch February 18, 2026 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants