Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README.md file suggested modification #33

Closed
affrae opened this issue Apr 29, 2020 · 1 comment · Fixed by #34
Closed

README.md file suggested modification #33

affrae opened this issue Apr 29, 2020 · 1 comment · Fixed by #34

Comments

@affrae
Copy link

affrae commented Apr 29, 2020

You may have an issue in your README.md file about workarounds for permissions issues with the standard GITHUB_TOKEN:

Private repositories

In some cases you may want to do add this functionality for a private repository or one you do not have admin rights to. You may get an error like:

GraphqlError: Resource not accessible by integration

When this happens you will need to:

  1. Create a personal access token
  2. Create a secret containing the personal access token, call it GITHUB_TOKEN
  3. Change the repo-token in the workflow .yml to reference your new token name:
repo-token: ${{ secrets.GITHUB_TOKEN }}

With certain organisations there may be SAML enforcement. This means you will need to Enable SSO when you create the personal access token.

GraphqlError: Resource protected by organization SAML enforcement. You must grant your personal token access to this organization

If a user tries to create a secret called GITHUB_TOKEN they will be denied as it is a reserved keyword. I would suggest MY_GITHUB_TOKEN instead. 💜

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants