From 9344c7aa5a7845b250834c4c6a7d8d733be2d143 Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Wed, 10 Aug 2022 04:23:21 -0700 Subject: [PATCH] fix: try to run dange in PR correctly (#34375) Summary: After https://github.com/facebook/react-native/issues/34370, Danger started failing because the `DANGER_GITHUB_API_TOKEN` was not properly set. This PR fixes it. ## Changelog [General] [Changed] - Set back the `DANGER_GITHUB_API_TOKEN`. Pull Request resolved: https://github.com/facebook/react-native/pull/34375 Test Plan: Danger GitHub action is executed correctly. Reviewed By: cortinico Differential Revision: D38571718 Pulled By: cipolleschi fbshipit-source-id: 51168098b4f910f6fefd2872f917e12daad1ec4c --- .github/workflows/danger_pr.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/danger_pr.yml b/.github/workflows/danger_pr.yml index 43221278c5e8f4..b1fc1097c9a80e 100644 --- a/.github/workflows/danger_pr.yml +++ b/.github/workflows/danger_pr.yml @@ -26,3 +26,5 @@ jobs: - name: Danger run: yarn danger ci --use-github-checks --failOnErrors working-directory: bots + env: + DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}