deangelisdf / write2audiobook

A powerful tool designed to convert text-based documents into engaging audiobooks. Perfect for anyone looking to make reading more accessible, whether for people with visual impairments or for those who simply prefer listening on the go.
MIT License
2 stars 4 forks source link

updated workflows to work with fork #29

Closed greg-martinez44 closed 2 months ago

greg-martinez44 commented 2 months ago

I noticed that the deploy-pages workflow failed. After a bit of research, I found that the pull_request and push triggers don't have write access if a PR from a forked repository triggers them.

From what I've read, I believe this change should work.

Essentially, the workflow_run trigger has read/write access because it has less context in its event payload.

I'm getting this from a GitHub security lab blog post: Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests.