From: Tom Hughes Date: Thu, 17 Oct 2024 17:41:05 +0000 (+0100) Subject: Attempt to get danger working as a CI workflow X-Git-Tag: live~66 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/6d0c2913326fbfdf3578416853e31d7a950d97ed?hp=3b6518852bc49024635a0a00d463e3105f61ec88 Attempt to get danger working as a CI workflow References #5267 --- diff --git a/.github/workflows/labeling.yml b/.github/workflows/labeling.yml index d7752c519..25f65873b 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