Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .github/workflows/scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ name: Scan

on:
workflow_call:
inputs:
zizmor-args:
description: >-
Extra zizmor arguments for repositories with documented needs,
e.g. --no-online-audits when a workflow pins a private first-party
action whose tags the repository token cannot list.
type: string
required: false
default: ""

permissions:
contents: read
Expand Down Expand Up @@ -73,7 +82,9 @@ jobs:
- name: Audit workflow security
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ZIZMOR_EXTRA_ARGS: ${{ inputs.zizmor-args }}
run: |
# $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
Comment on lines +87 to +90