Skip to content

Commit 1d3377a

Browse files
JonZeollaclaude
andcommitted
fix(ci): suppress setup-uv v7 warnings in Windows job, fix log scanner false positives
- Disable uv cache and ignore empty workdir in Windows Smoke Test (no checkout step due to NTFS-illegal template dir characters) - Skip JSON data lines in scan_workflow_logs.sh to avoid false positives from SBOM package names like "deprecated" Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent bf05b66 commit 1d3377a

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ jobs:
114114
uses: astral-sh/setup-uv@v7
115115
with:
116116
python-version: ${{ env.python_version }}
117+
# No checkout in this job (NTFS-illegal chars in template dir), so disable cache
118+
enable-cache: false
119+
ignore-empty-workdir: true
117120
- name: Install Task
118121
uses: go-task/setup-task@v2
119122
with:

scripts/scan_workflow_logs.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ find . -type f -name "*.txt" | while IFS= read -r logfile; do
8282
# Sanitize content to prevent command injection and log poisoning
8383
sanitized_content=$(echo "$content" | tr -d '\n\r' | cut -c1-200)
8484

85+
# Skip JSON data lines (e.g. SBOM/license check output with package names like "deprecated")
86+
if echo "$content" | grep -qE '"(id|name)":\s*"'; then
87+
continue
88+
fi
89+
8590
# Determine the type of issue and output both annotation and count
8691
if echo "$content" | grep -qiE '\berror\b'; then
8792
echo "::error file=$job_name,line=$line_num::$sanitized_content"

0 commit comments

Comments
 (0)