X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/96984421ad914a86f61d172301fad952df60536c..0d650217f4e805d7d40314bd471be0e53f0fde29:/.github/workflows/labeling.yml?ds=sidebyside diff --git a/.github/workflows/labeling.yml b/.github/workflows/labeling.yml index d7752c519..a223b47a4 100644 --- a/.github/workflows/labeling.yml +++ b/.github/workflows/labeling.yml @@ -6,12 +6,18 @@ on: pull_request_target: types: [opened, synchronize] +permissions: + pull-requests: write + statuses: write + jobs: danger: runs-on: ubuntu-22.04 steps: - name: Check out code uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Setup ruby uses: ruby/setup-ruby@v1 with: @@ -20,6 +26,6 @@ jobs: bundler-cache: true - name: Danger env: - DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} + DANGER_GITHUB_BEARER_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - bundle exec danger --verbose + bundle exec danger --verbose --base=${{ github.event.pull_request.base.sha }} --head=${{ github.event.pull_request.head.sha }}