mirror of
https://github.com/symfony/recipes.git
synced 2026-09-11 23:26:27 +03:00
Add check to reject symlinks
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user