From 20843ed5c656c598907fcc377c378e170894e8e0 Mon Sep 17 00:00:00 2001 From: sophian Date: Tue, 14 Jan 2025 13:50:33 -0500 Subject: [PATCH] oauth for authorization --- .github/ci-scripts/update-sdk-docs.cjs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/ci-scripts/update-sdk-docs.cjs b/.github/ci-scripts/update-sdk-docs.cjs index e0ab7a4..352f84e 100644 --- a/.github/ci-scripts/update-sdk-docs.cjs +++ b/.github/ci-scripts/update-sdk-docs.cjs @@ -64,8 +64,7 @@ async function main() { // Add and commit changes await git.add('.').commit('Update SDK documentation') - // Set the authenticated remote URL before pushing - const authUrl = `https://x-access-token:${process.env.PAT_TOKEN}@github.com/centrifuge/sdk-docs.git` + const authUrl = `https://oauth2:${process.env.PAT_TOKEN}@github.com/centrifuge/sdk-docs.git` await git.remote(['set-url', 'origin', authUrl]) // Push the new branch