Skip to content

feat: let callers pass extra zizmor arguments - #4

Merged
altaywtf merged 1 commit into
mainfrom
feat/zizmor-args
Aug 18, 2026
Merged

feat: let callers pass extra zizmor arguments#4
altaywtf merged 1 commit into
mainfrom
feat/zizmor-args

Conversation

@altaywtf

Copy link
Copy Markdown
Member

Problem

zizmor 1.29.0 hard-errors when any tag-listing audit meets an action in a repository the CI token cannot read; attach pins the private first-party uinaf/tessl-publish-action, and disabling audits one by one guts the scanner.

Solution

A zizmor-args workflow_call input (env-indirected into the run to avoid template expansion) so a repository with a documented need passes --no-online-audits while every other adopter keeps full coverage.

🤖 Generated with Claude Code

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 18, 2026 03:49
@altaywtf
altaywtf merged commit e0aac40 into main Aug 18, 2026
1 check passed
@altaywtf
altaywtf deleted the feat/zizmor-args branch August 18, 2026 03:50

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

This PR updates the shared Scan reusable workflow to let calling repositories provide additional zizmor CLI flags (e.g., to disable online audits when private actions prevent tag listing with the default CI token).

Changes:

  • Adds a new workflow_call input (zizmor-args) to accept extra zizmor arguments.
  • Threads the input into the zizmor Docker invocation via an environment variable.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

- name: Audit workflow security
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ZIZMOR_EXTRA_ARGS: ${{ inputs.zizmor-args }}
Comment on lines +87 to +90
# $ZIZMOR_EXTRA_ARGS word-splits by design; it carries flags, not data.
docker run --rm -e GH_TOKEN -v "$PWD:/repo" \
ghcr.io/zizmorcore/zizmor@sha256:863026d54f91271b10b60b67ad8054cb37120167e162482597db102b3026a284 \
/repo # 1.29.0
$ZIZMOR_EXTRA_ARGS /repo # 1.29.0
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.

2 participants