diff --git a/.github/workflows/mirror_noir_subrepo.yml b/.github/workflows/mirror_noir_subrepo.yml index 7b0e5a79985..52218b6c5db 100644 --- a/.github/workflows/mirror_noir_subrepo.yml +++ b/.github/workflows/mirror_noir_subrepo.yml @@ -43,8 +43,8 @@ jobs: - name: Push to branch run: | set -xue # print commands - # Enable gh executable. - export GH_TOKEN="${{ secrets.AZTEC_BOT_GITHUB_TOKEN }}" + # Enable gh executable. We spread out the API requests between the github actions bot token, and aztecbot + export GH_TOKEN="${{ secrets.GITHUB_TOKEN }}" SUBREPO_PATH=noir BRANCH=aztec2-packages # identify ourselves, needed to commit @@ -85,8 +85,10 @@ jobs: $MESSAGE END_COMMIT_OVERRIDE""" PR_URL=$(gh pr list --repo noir-lang/noir --head aztec2-packages --json url --jq ".[0].url") + # for cross-creating the PR in noir, we use aztecbot's token + export GH_TOKEN=$${{ secrets.AZTEC_BOT_GITHUB_TOKEN }} if [[ "$PR_URL" == "" ]]; then gh pr create --repo noir-lang/noir --title "feat: Sync from aztec-packages" --body "$PR_BODY" --base master --head aztec2-packages else gh pr edit "$PR_URL" --body "$PR_BODY" - fi \ No newline at end of file + fi