Open miroslavpojer opened 1 year ago
Another idea that could help with this is to split tests and test coverage in separated actions.
pull_request
pull_request_target
doesn't work like we think. It "runs in the context of the base of the pull request", so it doesn't actually run with the changes from the pull request. It may be useful for tasks like auto-labeling issues, but not to run the build of the PR. It is not a drop-in replacement for pull_request
In #339 we reverted to using pull_request
and separated the workflows for tests and test coverage.
This issue is related to:
333
334
Status in time of writing this issue is that we are using
pull_request_target
instead of usagepull_request
in yml files:This change was needed to be able to merge Approved changes from repository fork. We were not able to find any better solution in time of change.
Now, when merge is done we are in state where another changes can come inside repository from forks. It open potential security risk which was solved by simple change configuration for now.
Fast fix:
pull_request
action to both yml files mentioned above.Slow fix: