Skip to content

Commit b570dde

Browse files
Add check to reject symlinks
1 parent defb760 commit b570dde

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/qa.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Q&A
2+
3+
on:
4+
pull_request:
5+
6+
defaults:
7+
run:
8+
shell: bash
9+
10+
jobs:
11+
12+
tests:
13+
name: Checks
14+
runs-on: Ubuntu-20.04
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v2
19+
20+
- name: No symlinks
21+
run: |
22+
SYMLINKS=$(find -type l)
23+
if [[ "" != "$SYMLINKS" ]]; then
24+
echo "::error::Symlinks are not allowed"
25+
echo "Found $SYMLINKS"
26+
fi

0 commit comments

Comments
 (0)