Skip to content

fix(ci): scope workflow write permissions - #6033

Merged
SDAChess merged 1 commit into
mainfrom
fix/zizmor-findings/SDAChess
Nov 27, 2026
Merged

SDAChess merged 1 commit into
mainfrom
fix/zizmor-findings/SDAChess

Conversation

@SDAChess

Copy link
Copy Markdown
Contributor

Summary

Fix both open Zizmor excessive-permissions alerts by making workflow defaults read-only and granting write access at the jobs that publish artifacts.

Related Issue

Addresses code-scanning alerts 83 and 13.

Changes

  • Change the VM runtime workflow's default to contents: read, preserving registry read access and the release job's explicit write and attestation permissions.
  • Give both CI image publishing jobs explicit contents: read and packages: write, preserving their effective permissions.

Release Notes

Testing

  • Both affected workflows pass Actionlint 1.7.12 and the configured high-severity Zizmor 1.29.0 check.
  • Full Zizmor scan removes both targeted findings and adds none; four findings already dismissed in code scanning remain.
  • Full Actionlint diagnostics are identical before and after: eight existing errors for concurrency.queue.
  • Parsed YAML comparisons confirm that all fields outside permissions are identical, both CI jobs retain the same effective permissions, and VM builds only lose repository write access.
  • git diff --check passes.

GitHub publishing workflows were not dispatched.

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)

Signed-off-by: Simon Scatton <sscatton@nvidia.com>
@SDAChess
SDAChess requested a review from a team as a code owner November 27, 2026 11:49
@github-actions github-actions Bot added the state:accepted A maintainer decided OpenShell should pursue this issue label Nov 27, 2026
@SDAChess SDAChess added area:build CI/CD workflows, releases, build targets, packaging, and artifact publication. topic:security Vulnerability management, security analysis/auditing, bypass detection, and abuse prevention. labels Nov 27, 2026
@SDAChess
SDAChess added this pull request to the merge queue Nov 27, 2026
Merged via the queue into main with commit 2cd4f53 Nov 27, 2026
177 checks passed
@SDAChess
SDAChess deleted the fix/zizmor-findings/SDAChess branch November 27, 2026 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:build CI/CD workflows, releases, build targets, packaging, and artifact publication. state:accepted A maintainer decided OpenShell should pursue this issue topic:security Vulnerability management, security analysis/auditing, bypass detection, and abuse prevention.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants