build: exclude screenshots folder from extension distribution package
This commit is contained in:
@@ -27,8 +27,10 @@ if [ -n "$STAGED_FILES" ]; then
|
|||||||
while IFS= read -r file; do
|
while IFS= read -r file; do
|
||||||
[ -z "$file" ] && continue
|
[ -z "$file" ] && continue
|
||||||
|
|
||||||
# Check for forbidden export data files & raw media
|
# Check for forbidden export data files & raw media (allow screenshots/ and icons/)
|
||||||
if [[ "$file" =~ (activities\.csv|activities\.json|exporter_job_info\.json|\.zip$|\.crx$|\.mp4$|\.mov$|\.webm$|\.heic$|\.jpg$|\.jpeg$) ]]; then
|
if [[ "$file" =~ ^(screenshots/|icons/) ]]; then
|
||||||
|
: # Allowed store & UI asset directory
|
||||||
|
elif [[ "$file" =~ (activities\.csv|activities\.json|exporter_job_info\.json|\.zip$|\.crx$|\.mp4$|\.mov$|\.webm$|\.heic$|\.jpg$|\.jpeg$) ]]; then
|
||||||
echo -e "${RED}❌ [DATA LEAK BLOCKED] Staged forbidden export/media file:${NC} $file"
|
echo -e "${RED}❌ [DATA LEAK BLOCKED] Staged forbidden export/media file:${NC} $file"
|
||||||
ERRORS_FOUND=$((ERRORS_FOUND + 1))
|
ERRORS_FOUND=$((ERRORS_FOUND + 1))
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ jobs:
|
|||||||
-x "exports/*" \
|
-x "exports/*" \
|
||||||
-x "data/*" \
|
-x "data/*" \
|
||||||
-x "test_data/*" \
|
-x "test_data/*" \
|
||||||
|
-x "screenshots/*" \
|
||||||
-x "*.md" \
|
-x "*.md" \
|
||||||
-x "LICENSE" \
|
-x "LICENSE" \
|
||||||
-x "*.zip"
|
-x "*.zip"
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ build: check
|
|||||||
-x "exports/*" \
|
-x "exports/*" \
|
||||||
-x "data/*" \
|
-x "data/*" \
|
||||||
-x "test_data/*" \
|
-x "test_data/*" \
|
||||||
|
-x "screenshots/*" \
|
||||||
-x "Makefile" \
|
-x "Makefile" \
|
||||||
-x "*.md" \
|
-x "*.md" \
|
||||||
-x "LICENSE" \
|
-x "LICENSE" \
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 150 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 186 KiB |
Reference in New Issue
Block a user