platform-samples
platform-samples copied to clipboard
block_file_extensions.sh can be circumvented with fork + PR
The block_file_extensions.sh pre-receive-hook can be circumvented by:
- Fork the repository
- Add a file with the blocked exension
- Submit a pull request
- Merge pull request
We've done a little research and suspect that this is due to the:
excludeExisting="--not --all"
I guess we could mitigate, e.g. by adding block_self_merge_prs.sh, but this could still be circumvented if 2 users with write privileges colluded.
Any thoughts?