Skip to content

Commit 4642c34

Browse files
Use here-document for git credential input
Co-authored-by: volodymyr-memsql <57520563+volodymyr-memsql@users.noreply.github.com>
1 parent 4d28825 commit 4642c34

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/publish-release-assets.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,12 @@ jobs:
133133
# Configure git credentials securely using credential helper
134134
# This keeps the token out of the command line and git URLs
135135
git config --global credential.helper 'cache --timeout=300'
136-
echo "protocol=https
136+
git credential approve <<EOF
137+
protocol=https
137138
host=github.com
138139
username=x-access-token
139-
password=${GH_TOKEN}" | git credential approve
140+
password=${GH_TOKEN}
141+
EOF
140142

141143
# Push the tag using standard remote (credentials from helper)
142144
git push origin "${TAG_NAME}"

0 commit comments

Comments
 (0)