Skip to content

Scope workflow token permissions and waive placeholder GCS key - #50

Merged
GuySaar8 merged 1 commit into
mainfrom
GuySaar8/repoguard-fixes
Nov 13, 2026
Merged

GuySaar8 merged 1 commit into
mainfrom
GuySaar8/repoguard-fixes

Conversation

@GuySaar8

Copy link
Copy Markdown
Contributor

What

  • Workflow token permissions: preview-readme, release and verify-chart-version declared no permissions:, so they ran with the repo's default (write) GITHUB_TOKEN. Each now defaults to contents: read, with the extra scope only on the job that needs it:
    • preview-readme job: pull-requests: write (posts / minimizes the README preview comment).
    • release job: contents: write (GitHub release + tag) and packages: write (pushes the chart to ghcr.io). update-readme stays read-only; it pushes with the GitHub App token.
    • verify-chart-version: read-only (gh api .../releases/latest only needs contents: read).
  • .github/repoguard.yaml: waives sha256:3021d90eb943, flagged as a private key block in README.md, charts/s3proxy/override-values.example.yaml and test-values/gcs.yaml. It's a truncated placeholder in the example GCS service-account JSON, not a credential.

Notes

  • Nothing under charts/s3proxy/ changes, so no chart version bump / release.
  • The release job's scopes are only proven by the next chart release.

🤖 Generated with Claude Code

- preview-readme, release, verify-chart-version: default to contents: read;
  grant pull-requests: write to the preview job and contents/packages: write
  to the release job only.
- .github/repoguard.yaml: waive sha256:3021d90eb943, the truncated
  placeholder private key in the GCS service-account examples.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@GuySaar8
GuySaar8 requested review from liyaka and obezpalko November 13, 2026 17:46
@github-actions

Copy link
Copy Markdown

📊 Helm Render Diff Summary

Chart charts/s3proxy rendered with Kubernetes 1.29.0. Informational only — this check never fails the PR.

Values File Chart Path Changes Status
test-values/auth-existing-secret.yaml charts/s3proxy - ✅ No Changes
test-values/autoscaling.yaml charts/s3proxy - ✅ No Changes
test-values/azureblob-existing-secret.yaml charts/s3proxy - ✅ No Changes
test-values/azureblob-managed-identity.yaml charts/s3proxy - ✅ No Changes
test-values/azureblob.yaml charts/s3proxy - ✅ No Changes
test-values/filesystem.yaml charts/s3proxy - ✅ No Changes
test-values/gcs.yaml charts/s3proxy - ✅ No Changes
test-values/ingress.yaml charts/s3proxy - ✅ No Changes
test-values/multi-backend.yaml charts/s3proxy - ✅ No Changes
test-values/openstack-swift.yaml charts/s3proxy - ✅ No Changes
test-values/s3.yaml charts/s3proxy - ✅ No Changes
test-values/tls-existing-secret.yaml charts/s3proxy - ✅ No Changes
test-values/tls.yaml charts/s3proxy - ✅ No Changes
test-values/transient.yaml charts/s3proxy - ✅ No Changes

🎉 No changes detected in any of the tested configurations!

@GuySaar8
GuySaar8 merged commit cd2ad7d into main Nov 13, 2026
16 checks passed
@GuySaar8
GuySaar8 deleted the GuySaar8/repoguard-fixes branch November 13, 2026 17:47
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