You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(policies): widen floating-pin detection + pin CycloneDX tool version
Address Codex review findings (stackbilt_llc#12):
1. Broaden floating-ref regex from @vN-only to any non-SHA ref.
Old: `@v[\d]+` — missed @main, @master, semver tags (@v4.3.1)
New: `@(?![0-9a-f]{40}(?:\s|$|#))` — flags everything except a
40-char hex SHA. Applies to detect.ts, patch.ts, and the embedded
FLOATING_PIN_PATTERN constant in generate.ts.
2. resolveActionSha now also queries refs/heads/<tag> so branch refs
(@main, @master) can be patched to commit SHAs.
3. Test mock updated to return correct ref lines for both tag and branch
lookups; adds @main branch-ref patch test.
Governed-By: Stackbilt-dev/stackbilt_llc#11
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments