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): use github.token with explicit permissions instead of PAT secret

Julio Quinteros Pro54470ec1d9c1
diff --git a/.github/workflows/regenerate-poetry-lock.yml b/.github/workflows/regenerate-poetry-lock.yml
index 7dd9a728a12..8da2d70394d 100644
--- a/.github/workflows/regenerate-poetry-lock.yml
+++ b/.github/workflows/regenerate-poetry-lock.yml
@@ -12,15 +12,14 @@ on:
workflow_dispatch:
permissions:
- contents: read # GITHUB_TOKEN is not used for writes; PAT_TOKEN_2 handles push + PR creation
+ contents: write # needed to push the auto/regenerate-poetry-lock-* branch
+ pull-requests: write # needed to open the PR
jobs:
regenerate-lock:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- with:
- token: ${{ secrets.PAT_TOKEN_2 }}
- name: Set up Python
uses: actions/setup-python@v5
@@ -74,4 +73,4 @@ jobs:
--head "$BRANCH" \
--base main
env:
- GH_TOKEN: ${{ secrets.PAT_TOKEN_2 }}
+ GH_TOKEN: ${{ github.token }}