Pre-submission checks
zizmor version
1.26.1
Expected behavior
I expected, that zizmor does not flag ref-version-mismatch, when the comment is exactly
# zizmor: ignore[cache-poisoning] # v8.2.0.
Actual behavior
zizmor has flagged ref-version-mismatch on the line
- uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # zizmor: ignore[cache-poisoning] # v8.2.0
Reproduction steps
Run GH_TOKEN=$(gh auth token) zizmor -p .
Logs
help[ref-version-mismatch]: action's hash pin has mismatched or missing version comment
--> ./.github/workflows/build.yml:34:9
|
34 | - uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # zizmor: ignore[cache-poisoning] # v8.2.0
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ comment does not contain a version
|
= note: audit confidence → High
= tip: rewrite comment to include '# v8.2.0'
Additional context
- This bug is regression, introduced in 1.26.0, e.g.
GH_TOKEN=$(gh auth token) uvx 'zizmor==1.25.2' -p . do not show such warnings.
- It's interesting, that order of "version comment" and "zizmor ignore comment" is crucial to
dependabot. When it checks, should it update the version in comments, it checks whether the line ends with the version.
Pre-submission checks
zizmor version
1.26.1
Expected behavior
I expected, that
zizmordoes not flagref-version-mismatch, when the comment is exactly# zizmor: ignore[cache-poisoning] # v8.2.0.Actual behavior
zizmorhas flaggedref-version-mismatchon the line- uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # zizmor: ignore[cache-poisoning] # v8.2.0Reproduction steps
Run
GH_TOKEN=$(gh auth token) zizmor -p .Logs
Additional context
GH_TOKEN=$(gh auth token) uvx 'zizmor==1.25.2' -p .do not show such warnings.dependabot. When it checks, should it update the version in comments, it checks whether the line ends with the version.