Skip to content

fix(workflows): correct JSON output formatting in plugin discovery step#531

Merged
WilliamBerryiii merged 1 commit intomainfrom
fix/discover-plugins-fix
Feb 13, 2026
Merged

fix(workflows): correct JSON output formatting in plugin discovery step#531
WilliamBerryiii merged 1 commit intomainfrom
fix/discover-plugins-fix

Conversation

@agreaves-ms
Copy link
Copy Markdown
Collaborator

fix(workflows): correct JSON output formatting in plugin discovery step

Description

Fixed the plugin collection discovery step in the plugin-package.yml workflow by adding the compact output flag (-c) to the jq command. Without compact output, jq -s produced multi-line pretty-printed JSON that broke the $GITHUB_OUTPUT mechanism in GitHub Actions, preventing the matrix strategy from parsing the discovered plugin collections correctly.

  • fix(workflows): Added -c (compact) flag to jq -s in the plugin discovery step, changing jq -s '{include: .}' to jq -sc '{include: .}' to produce single-line JSON output compatible with $GITHUB_OUTPUT.

Related Issue(s)

N/A

Type of Change

Select all that apply:

Code & Documentation:

  • Bug fix (non-breaking change fixing an issue)
  • New feature (non-breaking change adding functionality)
  • Breaking change (fix or feature causing existing functionality to change)
  • Documentation update

Infrastructure & Configuration:

  • GitHub Actions workflow
  • Linting configuration (markdown, PowerShell, etc.)
  • Security configuration
  • DevContainer configuration
  • Dependency update

AI Artifacts:

  • Reviewed contribution with prompt-builder agent and addressed all feedback
  • Copilot instructions (.github/instructions/*.instructions.md)
  • Copilot prompt (.github/prompts/*.prompt.md)
  • Copilot agent (.github/agents/*.agent.md)
  • Copilot skill (.github/skills/*/SKILL.md)

Note for AI Artifact Contributors:

  • Agents: Research, indexing/referencing other project (using standard VS Code GitHub Copilot/MCP tools), planning, and general implementation agents likely already exist. Review .github/agents/ before creating new ones.
  • Skills: Must include both bash and PowerShell scripts. See Skills.
  • Model Versions: Only contributions targeting the latest Anthropic and OpenAI models will be accepted. Older model versions (e.g., GPT-3.5, Claude 3) will be rejected.
  • See Agents Not Accepted and Model Version Requirements.

Other:

  • Script/automation (.ps1, .sh, .py)
  • Other (please describe):

Testing

  • Verified that jq -sc '{include: .}' produces single-line JSON suitable for GitHub Actions matrix output.
  • Confirmed the workflow YAML syntax is valid after the change.

Checklist

Required Checks

  • Documentation is updated (if applicable)
  • Files follow existing naming conventions
  • Changes are backwards compatible (if applicable)
  • Tests added for new functionality (if applicable)

Required Automated Checks

The following validation commands must pass before merging:

  • Markdown linting: npm run lint:md
  • Spell checking: npm run spell-check
  • Frontmatter validation: npm run lint:frontmatter
  • Link validation: npm run lint:md-links
  • PowerShell analysis: npm run lint:ps

Security Considerations

  • This PR does not contain any sensitive or NDA information
  • Any new dependencies have been reviewed for security issues
  • Security-related scripts follow the principle of least privilege

Additional Notes

The jq -s (slurp) flag correctly aggregates JSON objects into an array, but its default pretty-printed output spans multiple lines. GitHub Actions $GITHUB_OUTPUT requires values to be on a single line. The -c (compact) flag resolves this by ensuring the JSON is emitted as a single line.

🔧 Generated by Copilot

@agreaves-ms agreaves-ms requested a review from a team as a code owner February 13, 2026 17:07
Copilot AI review requested due to automatic review settings February 13, 2026 17:07
@github-actions
Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes the plugin collection discovery output in the reusable plugin-package.yml GitHub Actions workflow so the discovered matrix JSON is emitted in a single line, making it compatible with $GITHUB_OUTPUT and preventing matrix parsing failures.

Changes:

  • Update the discovery step’s jq invocation to use compact output (jq -sc '{include: .}') so the workflow output is single-line JSON.

@WilliamBerryiii WilliamBerryiii merged commit 910fb8b into main Feb 13, 2026
24 checks passed
@agreaves-ms agreaves-ms deleted the fix/discover-plugins-fix branch February 13, 2026 17:09
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.34%. Comparing base (adbebe1) to head (8c1320f).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #531      +/-   ##
==========================================
- Coverage   85.36%   85.34%   -0.03%     
==========================================
  Files          23       23              
  Lines        4475     4475              
==========================================
- Hits         3820     3819       -1     
- Misses        655      656       +1     
Flag Coverage Δ
pester 85.34% <ø> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

agreaves-ms pushed a commit that referenced this pull request Feb 13, 2026
🤖 I have created a release *beep* *boop*
---


##
[2.3.1](hve-core-v2.3.0...hve-core-v2.3.1)
(2026-02-13)


### 🐛 Bug Fixes

* **build:** remove draft flag that prevents release tag creation
([#533](#533))
([c8de0aa](c8de0aa))
* **workflows:** correct JSON output formatting in plugin discovery step
([#531](#531))
([910fb8b](910fb8b))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: hve-core-release-please[bot] <254602402+hve-core-release-please[bot]@users.noreply.github.com>
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.

5 participants