AbsaOSS / ABRiS

Avro SerDe for Apache Spark structured APIs.
Apache License 2.0
231 stars 76 forks source link

Revert pull_request action back #337

Open miroslavpojer opened 1 year ago

miroslavpojer commented 1 year ago

This issue is related to:

Status in time of writing this issue is that we are using pull_request_target instead of usage pull_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:

Slow fix:

cerveada commented 1 year ago

Another idea that could help with this is to split tests and test coverage in separated actions.

kevinwallimann commented 1 year ago

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

cerveada commented 1 year ago

In #339 we reverted to using pull_request and separated the workflows for tests and test coverage.