Closed justin-f-perez closed 2 years ago
Please also consider this security warning:
Warning: The pull_request_target event is granted a read/write repository token and can access secrets, even when it is triggered from a fork. Although the workflow runs in the context of the base of the pull request, you should make sure that you do not check out, build, or run untrusted code from the pull request with this event. Additionally, any caches share the same scope as the base branch, and to help prevent cache poisoning, you should not save the cache if there is a possibility that the cache contents were altered. For more information, see "Keeping your GitHub Actions and workflows secure: Preventing pwn requests" on the GitHub Security Lab website.
Use
pull_request_target
instead ofpull_request
to hopefully fix the problem where the first-interaction greeting fails because of inadequate permissions to add a message on the PR. Resolves #182