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

Document (minimum) required scope for PAT #342

Open
sneumann opened this issue Sep 9, 2019 · 3 comments
Open

Document (minimum) required scope for PAT #342

sneumann opened this issue Sep 9, 2019 · 3 comments

Comments

@sneumann
Copy link

sneumann commented Sep 9, 2019

While PATs will go away once #77 is fixed, the documentation
https://github.com/marketplace/actions/github-pages-deploy#secrets
says You therefore have to create a custom Personal Access Token (PAT)
but when accessing https://github.com/settings/tokens/new I have tons
of options for Scopes define the access for personal tokens. What would be
the minimum permissions required to push stuff in a public repo to its (public) gh-pages
and trigger the rebuild ? Yours, Steffen

@maxheld83
Copy link
Owner

I've usually selected the entire repo scope, though as per the docs, for a public repo as you describe, public_repo should do the trick. Details on the scopes are here: https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/

I'll add this in the documentation; thanks for reporting.

Also, incidentally, this is a concern for my ghpages repo, whose action is here just being wrapped. I'm crosslisting this issue there -> maxheld83/ghpages#22

@maxheld83
Copy link
Owner

also, a bit of a warning: this repo (ghactions) is currently out of date with the relaunch of GitHub actions.

You can still use the ghpages action, but the main.workflow stuff written out by this package (ghactions) is deprecated by github. Working on it :).

@sneumann
Copy link
Author

sneumann commented Sep 9, 2019

For those that already the main.workflow, here is how to convert to the new format:
https://help.github.com/en/articles/migrating-github-actions-from-hcl-syntax-to-yaml-syntax
Will report back whether public_repo once was sufficient once admitted to the public beta...

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

No branches or pull requests

2 participants