Skip to content

Commit 67f5b9a

Browse files
authored
Add x-access-token to GH token in URL (#202)
Add the x-access-token prefix to the GH token when setting the remote origin, since the token is generated from a JWT and not someone's PAT it needs to have this prefix. Github docs: https://docs.github.com/en/enterprise-cloud@latest/apps/creating-github-apps/authenticating-with-a-github-app/authenticating-as-a-github-app-installation#about-authentication-as-a-github-app-installation
1 parent 70ace61 commit 67f5b9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

serverless/release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ if [ "$PROD_RELEASE" = true ] ; then
100100
git commit -m "Bump version from ${CURRENT_VERSION} to ${VERSION}"
101101
# git push origin main
102102
echo "pushing to remote branch"
103-
git remote set-url origin https://$GH_TOKEN@github.com/DataDog/datadog-cloudformation-macro.git
103+
git remote set-url origin https://x-access-token:$GH_TOKEN@github.com/DataDog/datadog-cloudformation-macro.git
104104
git push origin main
105105

106106
# Create a github release

0 commit comments

Comments
 (0)