From 741be9402c42c8a18532a5d051492a9ed6a23f56 Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Mon, 16 Mar 2026 19:47:36 +0000 Subject: [PATCH] Add GHA environment to update-dependencies workflow (#2778) * Add GHA environment to update-dependencies workflow See #2770 * activate the create-pull-request action to see if it works * Revert "activate the create-pull-request action to see if it works" This reverts commit b44f94d7a5c852b93b16157831b698f9c250628d. * Only request the environment when we need it --- .github/workflows/update-dependencies.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/update-dependencies.yml b/.github/workflows/update-dependencies.yml index 07200f5a..1403cd73 100644 --- a/.github/workflows/update-dependencies.yml +++ b/.github/workflows/update-dependencies.yml @@ -23,6 +23,7 @@ jobs: runs-on: ubuntu-latest permissions: contents: write + environment: ${{ github.ref == 'refs/heads/main' && github.repository == 'pypa/cibuildwheel' && 'update-dependencies-workflow' || '' }} steps: # we use this step to grab a Github App auth token, so that PRs generated by this workflow