When commenting with /preview on the second time in a PR, the Upload to staging action fails with an AccessDeniedException: 403 error.
/preview/previewUpload to staging without errors
https://github.com/nodejs/nodejs.dev/runs/640799129?check_suite_focus=true
The gsutil rsync command used to push file to staging uses checksum of file to check if the file is updated or not. If it finds a file to be updated, it will try to delete the older file.
Looks like the current IAM role has permissions to create a file but not delete a file, hence resulting in AccessDeniedException: 403 error.
@MylesBorins would you mind taking a look at this error?
This should be fixed now, I've extended the permissions. I'm not thrilled with how broad the IAM is and may play around with this during the week, but for now it might be good enough.
It works again thanks @MylesBorins
Most helpful comment
This should be fixed now, I've extended the permissions. I'm not thrilled with how broad the IAM is and may play around with this during the week, but for now it might be good enough.