Skip to content

Fix workflow block scalar indicator parsing - #3

Merged
GhosTnever-lkm merged 1 commit into
mainfrom
fix/diffshield-yaml-block-indicators-20261020
Oct 19, 2026
Merged

GhosTnever-lkm merged 1 commit into
mainfrom
fix/diffshield-yaml-block-indicators-20261020

Conversation

@GhosTnever-lkm

Copy link
Copy Markdown
Owner

Summary

  • recognize valid YAML block scalar indicators with explicit indentation and chomping modifiers in workflow run: blocks
  • add regression coverage for |2- and >+2 script blocks containing untrusted pull request text

Verification

  • Node syntax checks pass
  • node --test test/scan.test.mjs: 6 passed
  • reproduced the prior false negative with a committed workflow fixture; the scanner now reports Workflow script injection and exits nonzero

@GhosTnever-lkm
GhosTnever-lkm merged commit d312766 into main Oct 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant