Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix(ci): drop PAT_TOKEN_2 approval step, use github.token for auto-merge

Julio Quinteros Pro11d0fca0dede
diff --git a/.github/workflows/regenerate-poetry-lock.yml b/.github/workflows/regenerate-poetry-lock.yml
index fca6c31eb61..c0844f1c705 100644
--- a/.github/workflows/regenerate-poetry-lock.yml
+++ b/.github/workflows/regenerate-poetry-lock.yml
@@ -13,7 +13,7 @@ on:
permissions:
contents: write # needed to push the auto/regenerate-poetry-lock-* branch
- pull-requests: write # needed to open and approve the PR
+ pull-requests: write # needed to open the PR and enable auto-merge
jobs:
regenerate-lock:
@@ -72,12 +72,9 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
- - name: Approve and enable auto-merge
+ - name: Enable auto-merge
if: steps.diff.outputs.changed == 'true'
run: |
- # Approve with PAT_TOKEN_2 (a different identity from the creator,
- # since GitHub does not allow a token to approve its own PR).
- gh pr review "${{ steps.open-pr.outputs.pr_url }}" --approve
- gh pr merge "${{ steps.open-pr.outputs.pr_url }}" --auto --squash
+ gh pr merge "${{ steps.open-pr.outputs.pr_url }}" --auto --squash
env:
- GH_TOKEN: ${{ secrets.PAT_TOKEN_2 }}
+ GH_TOKEN: ${{ github.token }}