Skip to content

Commit b75fbdf

Browse files
committed
Fixup
1 parent fb67257 commit b75fbdf

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/scan_workflow_logs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ find . -type f -name "*.txt" | while IFS= read -r logfile; do
8080
content=$(echo "$line" | cut -d: -f3-)
8181

8282
# Sanitize content to prevent command injection and log poisoning
83-
sanitized_content=$(echo "$content" | tr -d '\n\r' | head -c 200)
83+
sanitized_content=$(echo "$content" | tr -d '\n\r' | cut -c1-200)
8484

8585
# Determine the type of issue and output both annotation and count
8686
if echo "$content" | grep -qiE '\berror\b'; then

{{cookiecutter.project_name|replace(" ", "")}}/scripts/scan_workflow_logs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ find . -type f -name "*.txt" | while IFS= read -r logfile; do
8080
content=$(echo "$line" | cut -d: -f3-)
8181

8282
# Sanitize content to prevent command injection and log poisoning
83-
sanitized_content=$(echo "$content" | tr -d '\n\r' | head -c 200)
83+
sanitized_content=$(echo "$content" | tr -d '\n\r' | cut -c1-200)
8484

8585
# Determine the type of issue and output both annotation and count
8686
if echo "$content" | grep -qiE '\berror\b'; then

0 commit comments

Comments
 (0)