mirror of
https://github.com/danielmiessler/SecLists
synced 2026-05-09 05:39:43 +02:00
Update wordlist-validator_verify_entries_for_starting_with_slash.yml
This commit is contained in:
parent
18e858ded3
commit
dcd04ba2f7
1 changed files with 4 additions and 4 deletions
|
|
@ -26,16 +26,16 @@ jobs:
|
||||||
uses: tj-actions/changed-files@v34
|
uses: tj-actions/changed-files@v34
|
||||||
- name: Analyze all added or modified files
|
- name: Analyze all added or modified files
|
||||||
run: |
|
run: |
|
||||||
|
work_file="/tmp/work.tmp"
|
||||||
echo "[+] Modified files:"
|
echo "[+] Modified files:"
|
||||||
echo ${{ steps.changed-files.outputs.all_changed_files }}
|
echo ${{ steps.changed-files.outputs.all_changed_files }}
|
||||||
for modified_file in ${{ steps.changed-files.outputs.all_changed_files }}
|
for modified_file in ${{ steps.changed-files.outputs.all_changed_files }}
|
||||||
do
|
do
|
||||||
echo "[+] Check $modified_file ..."
|
echo "[+] Check $modified_file ..."
|
||||||
rm /tmp/work.tmp 2>/dev/null
|
rm $work_file 2>/dev/null
|
||||||
grep -E '^/[a-zA-Z0-9\._]+' $modified_file > /tmp/work.tmp
|
grep -E '^/[a-zA-Z0-9\._]+' $modified_file > $work_file
|
||||||
if [ -s /tmp/work.tmp ];
|
if [ -s $work_file ]
|
||||||
then
|
then
|
||||||
echo "::warning file=$modified_file,line=1,col=1,endColumn=1::Has entries starting with a slash."
|
echo "::warning file=$modified_file,line=1,col=1,endColumn=1::Has entries starting with a slash."
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
echo 0
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue