mirror of
https://github.com/danielmiessler/SecLists.git
synced 2026-08-10 17:59:16 +00:00
Add debug message
This commit is contained in:
committed by
GitHub
parent
6fe2142da2
commit
3e8113fbad
@@ -26,12 +26,13 @@ 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: |
|
||||||
echo "Modified files:"
|
echo "[+] Modified files:"
|
||||||
echo ${{ steps.changed-files.outputs.all_changed_files }}
|
echo ${{ steps.changed-files.outputs.all_changed_files }}
|
||||||
echo "Check them..."
|
|
||||||
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 ..."
|
||||||
matches=$(grep -Ec "^/[a-zA-Z0-9\._]+" $modified_file)
|
matches=$(grep -Ec "^/[a-zA-Z0-9\._]+" $modified_file)
|
||||||
|
echo "Matches: $matches"
|
||||||
if [ $matches -ne 0 ];
|
if [ $matches -ne 0 ];
|
||||||
then
|
then
|
||||||
echo "::warning file=$modified_file,line=1,col=1,endColumn=1::$matches entries start with a slash."
|
echo "::warning file=$modified_file,line=1,col=1,endColumn=1::$matches entries start with a slash."
|
||||||
|
|||||||
Reference in New Issue
Block a user