-
Notifications
You must be signed in to change notification settings - Fork 125
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
Prettier throws errors on PRs opened from forks #2294
Comments
This appears to be a limitation of github actions (of this type) according to creyD/prettier_action#54 (comment) (and the link from there). |
Do we need some kind of requirement for people who open PRs against ARIA from different repos to run prettier locally on their branch? |
I ran into this too, in #2271 (comment). The error is happening in the checkout step (not the prettier step), because We could revise the checkout step like this— uses: actions/checkout@v4
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
fetch-depth: 0 —that’d get us further, but we’d hit another problem: permissions. The default token used in w3c/aria’s workflow doesn’t have permissions to write (i.e. push commits) to random other repos (even forks). There’s a two-part solution to that:
Footnotes
|
Thanks much @smockle for your detailed explanation. I would prefer for The fork’s owner (presumably, the PR author) to “allow edits and access to secrets by maintainers”. We don't currently have a bot account set up. |
See: #2290
The text was updated successfully, but these errors were encountered: