Merge pull request #21616 from BerriAI/fix/regenerate-lock-token-fallback

fix(ci): fall back to github.token when GH_TOKEN secret is not set
This commit is contained in:
jquinter 2026-02-19 20:01:46 -03:00 • committed by GitHub
commit 1edd6459b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,15 +12,14 @@ on:
workflow_dispatch:
permissions:
contents: read # GITHUB_TOKEN is not used for writes; GH_TOKEN (PAT) 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.GH_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v5
@ -74,4 +73,4 @@ jobs:
--head "$BRANCH" \
--base main
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GH_TOKEN: ${{ github.token }}