Skip to content

fix(ci): accept string-passed booleans in coverage job gates - #111

Merged
Shinrai merged 2 commits into
nextfrom
fix/coverage-pr-table-gate
Jun 9, 2026
Merged

Shinrai merged 2 commits into
nextfrom
fix/coverage-pr-table-gate

Conversation

@cldmv-bot

@cldmv-bot cldmv-bot Bot commented Jun 9, 2026 •

Copy link
Copy Markdown
Contributor

🚀 What's Changed

💥 Breaking Changes

No breaking changes

✨ Features

No new features

🐛 Bug Fixes

🔧 Other Changes

No other changes

👥 Contributors

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.
@cldmv-bot cldmv-bot Bot added the type: ci Changes to CI workflows, actions, or build pipelines label Jun 9, 2026
@Shinrai
Shinrai requested a review from Copilot June 9, 2026 03:17

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 for coverage-badge and coverage-pr-comment jobs to accept both boolean true and 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
Shinrai merged commit dd7a31d into next Jun 9, 2026
14 checks passed
@cldmv-bot
cldmv-bot Bot deleted the fix/coverage-pr-table-gate branch June 9, 2026 03:42
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: ci Changes to CI workflows, actions, or build pipelines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants