Skip to content

[PD1-138] Fix zizmor findings - #5

Merged
joshuanapoli merged 1 commit into
mainfrom
jn/pd1-138-zizmor
Aug 19, 2026
Merged

[PD1-138] Fix zizmor findings#5
joshuanapoli merged 1 commit into
mainfrom
jn/pd1-138-zizmor

Conversation

@joshuanapoli

@joshuanapoli joshuanapoli commented Aug 19, 2026

Copy link
Copy Markdown
Member

Clears this action's zizmor findings — 9 of them, 5 high — so the shared GitHub Actions static-analysis workflow can be rolled out here (CVector-Energy/cvec-management-account#197 extends that workflow's path filters to cover action definitions, which is what will start analyzing this repo).

All 9 are template-injection: ${{ inputs.package-manager }}, ${{ inputs.src-dirs }}, and ${{ steps.pm.outputs.run }} were expanded directly into run blocks, so a value containing shell syntax would have been executed with the job's permissions. They now arrive through env:.

One deliberate detail: $RUN (the uv run / poetry run prefix) and $SRC_DIRS (a space-separated list) are left unquoted, because both are meant to split into separate words — quoting them would pass uv run as a single command name and the directory list as one argument. There is a comment above the lint steps recording that. I confirmed the splitting in a local shell: $RUN ruff format $SRC_DIRS expands to 6 arguments, as before.

Verified with zizmor 1.25.2: clean. No interface change — same inputs, same behaviour.

Clear the zizmor findings in the action, so that the shared GitHub Actions static-analysis workflow can be rolled out to this repository.

The package manager input, the run prefix the detection step selects, and the source directories now reach the shell through the environment instead of being expanded into the script, where a value containing shell syntax would have been executed. The run prefix and the source directory list are still left unquoted, since both are meant to split into separate words, and a comment above the lint steps says so.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@joshuanapoli joshuanapoli self-assigned this Aug 19, 2026
@joshuanapoli
joshuanapoli requested a review from pgogadcv August 19, 2026 12:27
@joshuanapoli
joshuanapoli merged commit 5fa7597 into main Aug 19, 2026
1 check passed
@joshuanapoli
joshuanapoli deleted the jn/pd1-138-zizmor branch August 19, 2026 14:31
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