Repository navigation
fix(ci): accept string-passed booleans in coverage job gates - #111
Merged
Merged
Conversation
A reusable `type: boolean` input arrives as the string "true"/"false" when a
consumer passes it through a `${{ }}` expression — the standard template does
`enable_*: ${{ github.event.inputs.* != 'false' }}` — so a bare `== true`
silently evaluates false and the coverage-badge / coverage-pr-comment jobs skip
(green, no error). Accept both the boolean and string forms so the PR coverage
table is injected into release PRs again.
There was a problem hiding this comment.
Pull request overview
Updates the org-level CI reusable workflow to ensure the coverage-related jobs correctly run when boolean inputs are passed through ${{ }} expressions by consumer workflows (which can cause booleans to arrive as "true"/"false" strings).
Changes:
- Expand
if:conditions forcoverage-badgeandcoverage-pr-commentjobs to accept both booleantrueand string'true'. - Add inline documentation explaining the GitHub Actions boolean-to-string behavior and why the additional checks are necessary.
Same coercion trap as the coverage gates: enable_container_scan is a type:boolean reusable input, so a value passed via a workflow expression arrives as the string 'true' and a bare '== true' skips the scan/push steps. Accept the boolean and string forms.
Shinrai
approved these changes
Jun 9, 2026
Shinrai
added a commit
that referenced
this pull request
Jun 9, 2026
…113) ## 🚀 What's Changed ### 💥 Breaking Changes _No breaking changes_ ### ✨ Features - #112 - feat(labels): add type: feature and apply it when a feature is detected (8a4b650) ### 🐛 Bug Fixes - #112 - fix(labels): drop ambiguous 'patch' alias from type: bug (60e04ab) - #111 - fix(ci): string-safe the container-scan gate too (10ec6b6) - fix(ci): accept string-passed booleans in coverage job gates (d379f80) ### 🔧 Other Changes _No other changes_ <details> <summary>👥 Contributors</summary> - @Shinrai </details> --------- Co-authored-by: Nate Corcoran <[email protected]>
Shinrai
added a commit
that referenced
this pull request
Oct 4, 2026
escapeCell escaped | but not \, so a commit subject containing a backslash could swallow the escape added for a following pipe and break the run-summary / PR-comment table (CodeQL js/incomplete-sanitization, alert #111). Escape backslashes first, then pipes, and flatten line breaks. Covered by new tests.
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.
🚀 What's Changed
💥 Breaking Changes
No breaking changes
✨ Features
No new features
🐛 Bug Fixes
🔧 Other Changes
No other changes
👥 Contributors