diff --git a/.github/workflows/regenerate-poetry-lock.yml b/.github/workflows/regenerate-poetry-lock.yml index 17791f411cf..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; 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 }}