fix: SC2038 — use find -print0 | xargs -0 in workflow scripts - #49756
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update static analysis report for 2026-08-02
fix: SC2038 — use Aug 2, 2026
find -print0 | xargs -0 in workflow scripts
pelikhan
marked this pull request as ready for review
August 2, 2026 11:20
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes SC2038 findings from #49714 by making six find | xargs pipelines null-delimiter safe.
Changes:
- Adds
-print0andxargs -0across three workflows. - Regenerates the corresponding compiled workflow files.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/repository-quality-improver.md |
Makes Go metric collection filename-safe. |
.github/workflows/repository-quality-improver.lock.yml |
Updates compiled workflow output. |
.github/workflows/spec-extractor.md |
Makes import extraction filename-safe. |
.github/workflows/spec-extractor.lock.yml |
Updates compiled workflow output. |
.github/workflows/unbloat-docs.md |
Makes documentation filtering filename-safe. |
.github/workflows/unbloat-docs.lock.yml |
Updates compiled workflow output. |
Review details
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 6/6 changed files
- Comments generated: 0
- Review effort level: Balanced
Contributor
|
🎉 This pull request is included in a new release. Release: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Six
find | xargspipelines in workflow scripts lacked null-delimiter safety, causing silent argument mis-splitting on filenames with spaces or special characters (SC2038/actionlint).Changes
repository-quality-improver.md(3 sites):find ... | xargs wc -l→find ... -print0 | xargs -0 wc -lspec-extractor.md(1 site):find ... | xargs grep -h→find ... -print0 | xargs -0 grep -hunbloat-docs.md(2 sites):-print | xargs grep -rL→-print0 | xargs -0 grep -rL.lock.ymlfiles updated