Skip to content

fix(unpinned-images): ignore empty matrix containers - #2102

Merged
woodruffw merged 2 commits into
zizmorcore:mainfrom
Ninja3047:fix-empty-matrix-container
Jun 5, 2026
Merged

woodruffw merged 2 commits into
zizmorcore:mainfrom
Ninja3047:fix-empty-matrix-container

Conversation

@Ninja3047

Copy link
Copy Markdown
Contributor

Pre-submission checks

Please check these boxes:

  • Mandatory: This PR corresponds to an issue (if not, please create
    one first).

  • Having read the AI policy, I hereby disclose the use of an LLM or other
    AI coding assistant in the creation of this PR. PRs will not be rejected
    for using AI tools, but will be rejected for undisclosed use or
    use that violates the policy.

If a checkbox is not applicable, you can leave it unchecked.

Summary

Fixes #2101 by skipping when the image itself is empty.

Test Plan

Tested regression test with and without the change. Also tested manually that the pedantic persona still catches the referenced container in the matrix.

@Ninja3047
Ninja3047 force-pushed the fix-empty-matrix-container branch from d9c9b90 to 779b355 Compare June 4, 2026 21:18

@woodruffw woodruffw left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @Ninja3047! Mind adding a line to the release notes as well?

@woodruffw woodruffw added the bugfix Fixes a known bug label Jun 4, 2026
@woodruffw woodruffw added this to the 1.26.0 milestone Jun 4, 2026
@Ninja3047

Copy link
Copy Markdown
Contributor Author

updated

@woodruffw

Copy link
Copy Markdown
Member

Thanks again @Ninja3047! In the future we might want to lift this into the matrix expansion iteration itself, i.e. skip empty expansions entirely. Not sure. Either way this seems great for now.

@woodruffw
woodruffw merged commit 8afebfe into zizmorcore:main Jun 5, 2026
12 checks passed
@Ninja3047
Ninja3047 deleted the fix-empty-matrix-container branch June 5, 2026 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Fixes a known bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: unpinned images false positive when container name has an empty default

2 participants