Skip to content

Commit 70eb7fc

Browse files
committed
Change git auth
1 parent e78fa0f commit 70eb7fc

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.github/workflows/angr-release.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -166,13 +166,15 @@ jobs:
166166
run: release-scripts/publish_release_commits.sh
167167
env:
168168
DRY_RUN: ${{ github.event_name != 'schedule' && github.event.inputs.dry_run == false }}
169-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
169+
GIT_USERNAME: ${{ secrets.RELEASE_USER }}
170+
GIT_PASSWORD: ${{ secrets.RELEASE_TOKEN }}
170171

171172
- name: Bump versions on master
172173
run: release-scripts/bump_versions.sh
173174
env:
174175
DRY_RUN: ${{ github.event_name != 'schedule' && github.event.inputs.dry_run == false }}
175-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
176+
GIT_USERNAME: ${{ secrets.RELEASE_USER }}
177+
GIT_PASSWORD: ${{ secrets.RELEASE_TOKEN }}
176178

177179
# PyPI artifacts
178180
- name: Create artifacts and dist directories

release-scripts/bump_versions.sh

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ for i in $(ls $CHECKOUT_DIR); do
4343

4444
# Push
4545
if [ "$DRY_RUN" == "false" ]; then
46+
git remote set-url origin $(git remote get-url origin | sed "s#https://#https://$GIT_USERNAME:$GIT_PASSWORD@#")
4647
git push
4748
push_successful=$?
4849
if [ $push_successful -ne 0 ]; then

release-scripts/publish_release_commits.sh

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ source "$(dirname "$0")/vars.sh"
55

66
for i in $(ls $CHECKOUT_DIR); do
77
ref_to_push=$(git -C $CHECKOUT_DIR/$i describe --tags | head -n 1)
8+
git -C $CHECKOUT_DIR/$i remote set-url origin $(git -C $CHECKOUT_DIR/$i remote get-url origin | sed "s#https://#https://$GIT_USERNAME:$GIT_PASSWORD@#")
89
if [ "$DRY_RUN" == "false" ]; then
910
git -C $CHECKOUT_DIR/$i push origin "$ref_to_push"
1011
fi

0 commit comments

Comments
 (0)