Skip to content

ci: fix zizmor excessive-permissions and template-injection findings#293

Merged
chorrell merged 1 commit into
mainfrom
ci/fix-zizmor-issues
May 26, 2026
Merged

ci: fix zizmor excessive-permissions and template-injection findings#293
chorrell merged 1 commit into
mainfrom
ci/fix-zizmor-issues

Conversation

@chorrell
Copy link
Copy Markdown
Owner

Fixes two classes of zizmor findings in update-current-image.yml:

excessive-permissions (high): Scoped packages: write from the workflow level down to only the build and merge jobs that actually push to GHCR. The check_version job retains only contents: read.

template-injection (low, 5 findings): Replaced inline ${{ env.* }} and ${{ secrets.* }} expansions inside run: blocks with step-level env: mappings, so values are passed as shell environment variables rather than being interpolated directly into the script.

@chorrell chorrell merged commit c8eb27e into main May 26, 2026
3 checks passed
@chorrell chorrell deleted the ci/fix-zizmor-issues branch May 26, 2026 04:41
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.

1 participant