Skip to content

Commit 55133ea

Browse files
f-melonifacebook-github-bot
authored andcommitted
Use pullbot token instead of GITHUB_TOKEN on the Danger Action (#33900)
Summary: GITHUB_TOKEN doesn't have write permissions on forks, using the pullbot token instead. https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token ## Changelog <!-- Help reviewers and the release process by writing your own changelog entry. For an example, see: https://github.com/facebook/react-native/wiki/Changelog --> [Internal] - Use pullbot token instead of GITHUB_TOKEN on the Danger Action Pull Request resolved: #33900 Test Plan: CI will validate it Reviewed By: cipolleschi Differential Revision: D36627043 Pulled By: f-meloni fbshipit-source-id: bc7ff2f463c9d7cac61d362440858945edfbdbaf
1 parent 1ee7a0a commit 55133ea

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/danger_pr.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ jobs:
1212
- run: yarn install
1313
working-directory: bots
1414
- name: Danger
15-
run: yarn danger ci --use-github-checks --failOnErrors --id danger_pr
15+
run: DANGER_GITHUB_API_TOKEN="$PUBLIC_PULLBOT_GITHUB_TOKEN_A""$PUBLIC_PULLBOT_GITHUB_TOKEN_B" yarn danger ci --use-github-checks --failOnErrors --id danger_pr
1616
working-directory: bots
1717
env:
18-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
PUBLIC_PULLBOT_GITHUB_TOKEN_A: a6edf8e8d40ce4e8b11a
19+
PUBLIC_PULLBOT_GITHUB_TOKEN_B: 150e1341f4dd9c944d2a

0 commit comments

Comments
 (0)