romeovs / lcov-reporter-action

Comments a pull request with the code coverage generated by your tests.
MIT License
161 stars 99 forks source link

Support pull_request_target event type #63

Closed Fishbowler closed 5 months ago

Fishbowler commented 1 year ago

The pull_request_target event is an alternative to the pull_request event but with some different security considerations. Docs.

We use it on private repositories to allow dependabot access to our secrets, safe in the knowledge that a private repo can't expose our secrets to drive-by malicious PRs.

This is a simple change that extends the logic for "pull_request" to "pull_request_target" for comparisons of changes, etc.