-
Notifications
You must be signed in to change notification settings - Fork 13
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
bug: error in the Comment on PR
phase
#43
Comments
Thanks for the report and for using pkg-size! I did some Googling for that error message and they all seem to point at a lack of permissions in the token. Seems this is happening because it was executed via fork as per this security change: announcement, docs
There doesn't seem to be an option to further specify allowing comments. To work around:
|
Thanks for replying!
As for the Personal Access Token, it seems to have the same security issue. The guideline above mentioned a recommended solution: split the action into two parts. One for building, collecting package size data and uploading the result (using the |
This seems like a common problem: https://github.community/t/token-permissions-for-forks-once-again/16468/6 It doesn't seem like there's a workaround to post comments from a fork. I wonder if (FWIW since you seem to be security conscious, in general, using any 3rd party GitHub Action via tag is insecure.) |
Bug description
I'm getting this error in this github action:
Reproduction steps
The github action log is here:
https://github.com/ant-design/ant-design-mobile/runs/4029511668?check_suite_focus=true
And the related workflow config is here:
https://github.com/ant-design/ant-design-mobile/blob/master/.github/workflows/bundle-size.yml
Environment
pkg-size-action
version: v1The text was updated successfully, but these errors were encountered: