Search before asking
Description
The following workflows use pull_request_target as a trigger:
- Documentation Bot (
.github/workflows/document_bot.yml)
- Pull Request Labeler (
.github/workflows/labeler.yml)
Using pull_request_target is considered a security risk because it runs workflows with write permissions in the context of the base repository, even when triggered by a fork. This can expose repository secrets and allow malicious code from a forked PR to execute with elevated privileges.
Are you willing to submit a PR?