diff --git a/.github/workflows/optimize-images.yml b/.github/workflows/optimize-images.yml index 4679d6aaf87a..88e05bffb7a5 100644 --- a/.github/workflows/optimize-images.yml +++ b/.github/workflows/optimize-images.yml @@ -23,6 +23,10 @@ jobs: uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 with: ref: ${{ github.head_ref }} + # Need to specify a PAT here because otherwise GITHUB_TOKEN is used + # by default. Workflows won't trigger in that case because actions + # performed with GITHUB_TOKEN don't trigger other workflows. + token: ${{ secrets.DOCUBOT_REPO_PAT }} - name: Check out base ref run: git fetch --no-tags --depth=1 origin $GITHUB_BASE_REF