Skip to content

Commit be10897

Browse files
authored
Update troubleshooting steps (#75)
1 parent f1ec735 commit be10897

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,13 @@ repo-token: ${{ secrets.GHPROJECT_TOKEN }}
9292

9393
## Troubleshooting
9494

95-
**GraphqlError: Resource not accessible by integration** or **Secrets are not currently available to forks.** This error happens on repository projects and forked repositories because [`GITHUB_TOKEN` only has read permissions](https://help.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token#permissions-for-the-github_token). Create a personal access token following the instructions above.
95+
**GraphqlError: Resource not accessible by integration** or **Secrets are not currently available to forks.**
96+
97+
This error happens on repository projects and forked repositories because [`GITHUB_TOKEN` only has read permissions](https://help.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token#permissions-for-the-github_token). Create a personal access token following the instructions above.
98+
99+
**Parameter token or opts.auth is required**
100+
101+
This error happens when using a personal access token to run the workflow on PRs from forked repositories. This is because [GitHub secrets are not populated for workflows triggered by forks](https://docs.github.com/en/actions/reference/events-that-trigger-workflows#pull-request-events-for-forked-repositories-2). Use `pull_request_target` as the webhook event instead to [enable access to secrets](https://docs.github.com/en/actions/reference/events-that-trigger-workflows#pull_request_target).
96102

97103
**SAML enforcement**
98104

0 commit comments

Comments
 (0)