Skip to content

Add support for --strict-collection - #198

Merged
woodruffw merged 4 commits into
zizmorcore:mainfrom
MizouziE:feat/support-strict-collection
Nov 22, 2026
Merged

woodruffw merged 4 commits into
zizmorcore:mainfrom
MizouziE:feat/support-strict-collection

Conversation

@MizouziE

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

Closes #141

I use the zizmor-action on all of my work CI runs and was suspicious of a recent run which passed even though the PR had a typo in the yaml which should have caused a null array input error. When I looked closer at the workflow run output I spotted that it had just warned and carried on. I found that I could get it to fail loudly in a local run with passing the --strict-collection flag, but I prefer using the action on CI as that's how the rest of my QA works and I don't fancy adding a special case.

Long story short, I found the open issue and the green light to add it along with the pointed out template from #139

Test Plan

As it stands, I have included tests which each have a run step which creates the required fixtures on the fly. To fit better with the existing tests the two options I see are to add a new "broken" workflow into https://github.com/woodruffw-experiments/reusable-workflow or to request a whole new little repo is made like https://github.com/woodruffw-experiments/zizmor-issue-2182/blob/main/.github/workflows/junk.yml.

Please let me know if either of those, or something else, would be preferred or if it should be handled as a follow up?

The tests are based on the selftest-plain-gha-hazmat-xfail: and selftest-plain: pair of tests

@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 @MizouziE! Generating the broken workflows here seems fine to me, and the change itself looks good.

Comment thread .github/workflows/selftest.yml Resolved
Comment thread .github/workflows/selftest.yml Resolved
Co-authored-by: William Woodruff <william@yossarian.net>
@woodruffw
woodruffw merged commit bd12b49 into zizmorcore:main Nov 22, 2026
24 checks passed
@MizouziE
MizouziE deleted the feat/support-strict-collection branch November 23, 2026 06:32
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.

Feature: support --strict-collection

2 participants