Skip to content

Commit 4757527

Browse files
committed
scripts: authenticate git push for release
actions/checkout@v6 changed behavior and the credentials can be reused only if it is run from the same directory. But we copy the repository to a temporary location to prepare the release, so we need to re-authenticate in the tmp folder. Reviewed-by: Justin Stephenson <jstephen@redhat.com>
1 parent 4617eb2 commit 4757527

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/release.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ gpg --default-key C13CD07FFB2DB1408E457A3CD3D21B2910CF6759 --detach-sign --armor
9494
sha256sum "sssd-${version}.tar.gz" > "sssd-${version}.tar.gz.sha256sum"
9595
GROUP_END
9696

97+
GROUP_START "Authenticate git commands"
98+
gh auth setup-git
99+
GROUP_END
100+
97101
GROUP_START "Push commits and tag"
98102
git push "$git_remote" "$branch"
99103
git push "$git_remote" "$version"

0 commit comments

Comments
 (0)