Open ohitsdaniel opened 3 years ago
GITHUB_TOKEN does not have write permission, i.e. cannot comment on issues, in PRs triggered from forks.
Open a pull request from a fork. Danger fails.
Danger succeeds and posts a comment.
Add a bot user with write permission on issues / PRs and expose a personal access token of said user to the PR workflows. (See Danger docs)
Bug description
GITHUB_TOKEN does not have write permission, i.e. cannot comment on issues, in PRs triggered from forks.
Steps to reproduce
Open a pull request from a fork. Danger fails.
Expected behavior
Danger succeeds and posts a comment.
Solution
Add a bot user with write permission on issues / PRs and expose a personal access token of said user to the PR workflows. (See Danger docs)