X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b935cd6fef56934c432bdce4c78a1c64b60755d1..8cb270f5576c3b95f085c8ec25f6dfa376925351:/.github/workflows/labeling.yml diff --git a/.github/workflows/labeling.yml b/.github/workflows/labeling.yml index d7752c519..4693ca570 100644 --- a/.github/workflows/labeling.yml +++ b/.github/workflows/labeling.yml @@ -6,12 +6,17 @@ on: pull_request_target: types: [opened, synchronize] +permissions: + issues: 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 +25,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.base_ref }} --head=${{ github.head_ref }}