Add check to reject symlinks

This commit is contained in:
Nicolas Grekas
2021-07-07 16:11:46 +02:00
parent defb760e33
commit b570ddec67
+26
View File
@@ -0,0 +1,26 @@
name: Q&A
on:
pull_request:
defaults:
run:
shell: bash
jobs:
tests:
name: Checks
runs-on: Ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: No symlinks
run: |
SYMLINKS=$(find -type l)
if [[ "" != "$SYMLINKS" ]]; then
echo "::error::Symlinks are not allowed"
echo "Found $SYMLINKS"
fi