Skip to content

Fix: Bisect 95ebc2f7#790

Merged
xsscx merged 5 commits intomasterfrom
fix-bisect-95ebc2f7
Apr 6, 2026
Merged

Fix: Bisect 95ebc2f7#790
xsscx merged 5 commits intomasterfrom
fix-bisect-95ebc2f7

Conversation

@xsscx
Copy link
Copy Markdown
Member

@xsscx xsscx commented Apr 6, 2026

Pull Request Checklist

  • Have you followed the guidelines in Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you built your Pull Request locally with the Build Instructions?
  • Have you added or updated relevant tests?
  • Have you added or updated relevant docs?

xsscx and others added 2 commits April 6, 2026 12:35
- sanitize-sed.sh: add detect_hidden_chars() and validate_ref() (v4)
  8 detection categories: BOM, bidi, zero-width, word joiner,
  line/para separators, interlinear annotation, broad non-printable
- sanitize.ps1: add Detect-HiddenChars and Validate-Ref (v4)
  PowerShell parity with bash detection functions
- ci-pr-action.yml: add ref name validation in PR summary step
  Calls detect_hidden_chars on HEAD_REF and BASE_REF
- ci-pr-risk-security-analysis.yml:
  - Fix Section 7: detect all write-access permission scopes
    (was only matching contents:write, now matches any scope:write)
  - Add Section 10: Ref Name Security Validation (bash + PS)
  - Renumber Workflow Inventory to Section 11

Addresses GitHub UI warning parity gap where branch names
containing U+FEFF (BOM) were silently stripped by sanitize_line()
but never reported as security findings.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@xsscx xsscx requested a review from dwtza as a code owner April 6, 2026 20:33
@xsscx xsscx requested review from ChrisCoxArt and removed request for dwtza April 6, 2026 20:34
@xsscx xsscx self-assigned this Apr 6, 2026
@xsscx xsscx added PR Pull Request Merge Ready Maintainer indicates Merge Ready labels Apr 6, 2026
sanitize-sed.sh was bumped to iccDEV-sanitizer-v4 (added
detect_hidden_chars and validate_ref), but test_sanitization.sh
Test 58 still expected v3. Aligns test with actual version.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@xsscx xsscx changed the title fix: CFL-080 UBSAN bitmask + hidden Unicode detection + permissions scanner Fix: Bisect 95ebc2f7 Apr 6, 2026
grep returns exit 1 when no write scopes are found in a workflow
permissions block. Under set -euo pipefail, this kills the entire
step. Append || true to the pipeline so empty results are handled
gracefully (same pattern as governance Finding #8).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Section 10: add PR #786 BOM canary check that verifies
detect_hidden_chars() is functional before trusting ref
validation results. Injects exact U+FEFF pattern from the
known-bad branch name.

Section 10: add emit_ref_finding() helper with raw hex dump
and diagnostic category output. Makes invisible bytes
forensically visible in the step summary.

Section 6: upgrade unsanitized write listing from bullet
list to table with File, Line, and Content columns.

Fix: add elements-sanitized marker to Windows Section 10
Out-File write (closes 105/105 gap).

Tested: 84/84 pass against xsscx/fuzz full-unicode.txt corpus
(5.5MB, all 8 detection categories verified).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@xsscx xsscx added Pending Merge Maintainer indicates Merge Pending and Requests No Further Changes and removed Merge Ready Maintainer indicates Merge Ready pending labels Apr 6, 2026
@xsscx xsscx merged commit 985574e into master Apr 6, 2026
1 check passed
@xsscx xsscx mentioned this pull request Apr 6, 2026
5 tasks
@xsscx xsscx deleted the fix-bisect-95ebc2f7 branch April 7, 2026 01:18
@xsscx xsscx removed the Pending Merge Maintainer indicates Merge Pending and Requests No Further Changes label Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR Pull Request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Modify: Canary Alerts in ci-risk-analysis Bisect: 95ebc2f7 ~icMCSNeedsSubsetTrue Add: Workflow Governance Checks

2 participants