Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use pull_request_target to allow deleting previews from froks (#…
…697) Uses [pull_request_target](https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#pull_request_target) to delete previews of PRs from forks. See also https://securitylab.github.com/resources/github-actions-preventing-pwn-requests/ It grants write access using the GITHUB_TOKEN, but it is safe as: - No code from the PR is built or executed - The workflow file in use is the one from the base branch (main) **Related issue :** Fix #696
- Loading branch information