diff --git a/.github/workflows/danger.yml b/.github/workflows/danger.yml index dc3a0fe33b7..c44e7c135b6 100644 --- a/.github/workflows/danger.yml +++ b/.github/workflows/danger.yml @@ -1,6 +1,9 @@ name: danger -on: [pull_request, workflow_dispatch] +on: + pull_request: + types: [opened, synchronize, reopened] + workflow_dispatch: concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} @@ -8,13 +11,26 @@ concurrency: jobs: danger: - runs-on: macos-14 + runs-on: macos-15 + permissions: + issues: write + pull-requests: write + contents: read # Required to read the Dangerfile steps: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 + + - name: Generate GitHub App Token + id: generate-token + uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf #v2.2.1 + with: + app-id: ${{ secrets.DANGER_APP_ID }} + private-key: ${{ secrets.DANGER_APP_PRIVATE_KEY }} + - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1 - name: Setup Bundler run: scripts/setup_bundler.sh + - name: Danger env: - DANGER_GITHUB_API_TOKEN: ${{ secrets.DangerGitHubAPIToken }} + DANGER_GITHUB_API_TOKEN: ${{ steps.generate-token.outputs.token }} run: '[ ! -z $DANGER_GITHUB_API_TOKEN ] && bundle exec danger || echo "Skipping Danger for External Contributor"' diff --git a/Gemfile b/Gemfile index cc267b2e746..f65d972e637 100644 --- a/Gemfile +++ b/Gemfile @@ -2,7 +2,7 @@ # commit Gemfile and Gemfile.lock. source 'https://rubygems.org' -# To test CocoaPods pre-releases, update to a relevant commit or tag like below +# To test CocoaPods pre-releases, update to a relevant commit or tag like below. # cocoapods-core and xcodeproj may or may not also need tags. For additional # testing, enable the cron jobs with a global search and replace from your # favorite editor. See https://github.com/firebase/firebase-ios-sdk/pull/8498 @@ -14,4 +14,4 @@ source 'https://rubygems.org' gem 'cocoapods', '1.16.2' gem 'cocoapods-generate', '2.2.5' -gem 'danger', '8.4.5' +gem 'danger', '9.5.3' diff --git a/Gemfile.lock b/Gemfile.lock index c4e166dd671..d9d11fa7972 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -77,48 +77,31 @@ GEM connection_pool (2.4.1) cork (0.3.0) colored2 (~> 3.1) - danger (8.4.5) + danger (9.5.3) + base64 (~> 0.2) claide (~> 1.0) claide-plugins (>= 0.9.2) - colored2 (~> 3.1) + colored2 (>= 3.1, < 5) cork (~> 0.1) - faraday (>= 0.9.0, < 2.0) + faraday (>= 0.9.0, < 3.0) faraday-http-cache (~> 2.0) - git (~> 1.7) - kramdown (~> 2.3) + git (>= 1.13, < 3.0) + kramdown (>= 2.5.1, < 3.0) kramdown-parser-gfm (~> 1.0) - no_proxy_fix - octokit (~> 4.7) - terminal-table (>= 1, < 4) + octokit (>= 4.0) + pstore (~> 0.1) + terminal-table (>= 1, < 5) drb (2.2.1) escape (0.0.4) ethon (0.16.0) ffi (>= 1.15.0) - faraday (1.10.3) - faraday-em_http (~> 1.0) - faraday-em_synchrony (~> 1.0) - faraday-excon (~> 1.1) - faraday-httpclient (~> 1.0) - faraday-multipart (~> 1.0) - faraday-net_http (~> 1.0) - faraday-net_http_persistent (~> 1.0) - faraday-patron (~> 1.0) - faraday-rack (~> 1.0) - faraday-retry (~> 1.0) + faraday (2.8.1) + base64 + faraday-net_http (>= 2.0, < 3.1) ruby2_keywords (>= 0.0.4) - faraday-em_http (1.0.0) - faraday-em_synchrony (1.0.0) - faraday-excon (1.1.0) faraday-http-cache (2.5.1) faraday (>= 0.8) - faraday-httpclient (1.0.1) - faraday-multipart (1.0.4) - multipart-post (~> 2) - faraday-net_http (1.0.2) - faraday-net_http_persistent (1.2.0) - faraday-patron (1.0.0) - faraday-rack (1.0.0) - faraday-retry (1.0.3) + faraday-net_http (3.0.2) ffi (1.17.0) fourflusher (2.3.1) fuzzy_match (2.0.4) @@ -130,40 +113,41 @@ GEM i18n (1.14.6) concurrent-ruby (~> 1.0) json (2.7.5) - kramdown (2.4.0) - rexml + kramdown (2.5.1) + rexml (>= 3.3.9) kramdown-parser-gfm (1.1.0) kramdown (~> 2.0) logger (1.6.1) minitest (5.25.1) molinillo (0.8.0) - multipart-post (2.4.1) mutex_m (0.2.0) nanaimo (0.4.0) nap (1.1.0) netrc (0.11.0) nkf (0.2.0) - no_proxy_fix (0.1.2) - octokit (4.25.1) + octokit (10.0.0) faraday (>= 1, < 3) sawyer (~> 0.9) open4 (1.3.4) + pstore (0.2.0) public_suffix (4.0.7) rchardet (1.8.0) rexml (3.4.2) ruby-macho (2.5.1) ruby2_keywords (0.0.5) - sawyer (0.9.2) + sawyer (0.9.3) addressable (>= 2.3.5) faraday (>= 0.17.3, < 3) securerandom (0.3.1) - terminal-table (3.0.2) - unicode-display_width (>= 1.1.1, < 3) + terminal-table (4.0.0) + unicode-display_width (>= 1.1.1, < 4) typhoeus (1.4.1) ethon (>= 0.9.0) tzinfo (2.0.6) concurrent-ruby (~> 1.0) - unicode-display_width (2.5.0) + unicode-display_width (3.2.0) + unicode-emoji (~> 4.1) + unicode-emoji (4.2.0) xcodeproj (1.27.0) CFPropertyList (>= 2.3.3, < 4.0) atomos (~> 0.1.3) @@ -178,7 +162,7 @@ PLATFORMS DEPENDENCIES cocoapods (= 1.16.2) cocoapods-generate (= 2.2.5) - danger (= 8.4.5) + danger (= 9.5.3) BUNDLED WITH 2.1.4