diff --git a/.github/workflows/labeling.yml b/.github/workflows/labeling.yml index 4693ca570c..2bdf50de75 100644 --- a/.github/workflows/labeling.yml +++ b/.github/workflows/labeling.yml @@ -8,6 +8,7 @@ on: permissions: issues: write + pull-requests: write jobs: danger: @@ -27,4 +28,4 @@ jobs: env: DANGER_GITHUB_BEARER_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - bundle exec danger --verbose --base=${{ github.base_ref }} --head=${{ github.head_ref }} + bundle exec danger --verbose --base=${{ github.event.pull_request.base.sha }} --head=${{ github.event.pull_request.head.sha }}