mirror of
https://github.com/danielmiessler/SecLists
synced 2026-05-01 03:13:31 +02:00
Update wordlist-validator_verify_entries_for_starting_with_slash.yml
This commit is contained in:
parent
5a9dcad637
commit
08ef31d5d2
1 changed files with 1 additions and 13 deletions
|
|
@ -26,16 +26,4 @@ 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"
|
for modified_file in ${{ steps.changed-files.outputs.all_changed_files }} ; do bash ./.bin/check-file-for starting-slash "$modified_file" done
|
||||||
echo "[+] Modified files:"
|
|
||||||
echo ${{ steps.changed-files.outputs.all_changed_files }}
|
|
||||||
for modified_file in ${{ steps.changed-files.outputs.all_changed_files }}
|
|
||||||
do
|
|
||||||
echo "[+] Check $modified_file ..."
|
|
||||||
rm $work_file 2>/dev/null
|
|
||||||
grep -E '^/[a-zA-Z0-9\._]+' $modified_file > $work_file
|
|
||||||
if [ -s $work_file ]
|
|
||||||
then
|
|
||||||
echo "::warning file=$modified_file,line=1,col=1,endColumn=1::Has entries starting with a slash."
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue