diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cbdc007b79a..8c563c3e5f1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -242,5 +242,9 @@ jobs: - name: Push changes working-directory: cpython/Doc/locales if: ${{ contains(fromJSON('["schedule", "workflow_dispatch"]'), github.event_name) }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | + git remote set-url origin \ + "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" git push diff --git a/.github/workflows/download-glossary.yml b/.github/workflows/download-glossary.yml index f9fa04e2809..f3d043eb264 100644 --- a/.github/workflows/download-glossary.yml +++ b/.github/workflows/download-glossary.yml @@ -62,6 +62,8 @@ jobs: name: glossary - name: Commit and push if changed + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | git config user.name "github-actions" git config user.email "41898282+github-actions[bot]@users.noreply.github.com" @@ -72,5 +74,7 @@ jobs: echo "No changes" else git commit -m "Auto-update glossary as of $(date +'%Y.%m.%d')" + git remote set-url origin \ + "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" git push fi