Skip to content

fix: reduce verify job packages permission to read-only - #73

Merged
paradoxbound merged 2 commits into
mainfrom
fix/verify-job-packages-permission
Mar 8, 2026
Merged

paradoxbound merged 2 commits into
mainfrom
fix/verify-job-packages-permission

Conversation

@paradoxbound

Copy link
Copy Markdown
Owner

Summary

The verify job in docker-publish.yml only inspects existing images using docker buildx imagetools inspect — it never pushes. Reduces packages: write to packages: read to satisfy least-privilege (OSPS-AC-04.02).

All other job permissions were reviewed and are already correctly scoped:

  • build-and-push: needs packages: write + id-token: write + attestations: write for pushing images and SLSA attestation
  • scan: needs security-events: write for SARIF upload, packages: read for pulling image
  • merge: needs contents: write for git tag + GitHub Release, packages: write for manifest creation
  • cleanup: needs packages: write for deleting GHCR tags
  • pre-merge-cd-check: needs packages: write for push/cleanup of PR test images

Test plan

  • Pipeline passes on next merge to main

🤖 Generated with Claude Code

…SPS-VM-04.01)

Signed-off-by: Paradoxbound <paradoxbound@users.noreply.github.com>
Signed-off-by: Paradoxbound <paradoxbound@users.noreply.github.com>
@paradoxbound
paradoxbound merged commit 006bcaf into main Mar 8, 2026
13 checks passed
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