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
6 changes: 5 additions & 1 deletion .github/workflows/run-script.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ jobs:
key: pre-commit-${{ runner.os }}-${{ hashFiles('.pre-commit-config.yaml') }}

- name: Run
run: ${{ inputs.run }} # zizmor: ignore[template-injection] caller-provided script
# Some tools reject an empty GH_TOKEN (e.g. zizmor), so unset it rather
# than leaving it empty.
run: | # zizmor: ignore[template-injection] caller-provided script
[ -n "$GH_TOKEN" ] || unset GH_TOKEN
${{ inputs.run }}
env:
GH_TOKEN: ${{ inputs.github-token && github.token || '' }}
# Point prek at the pre-commit cache path so the cache step covers both.
Expand Down
Loading