Skip to content

Add read-only permissions to release workflow#109

Merged
bernardladenthin merged 1 commit into
masterfrom
claude/add-workflow-permissions-zyUcf
May 7, 2026
Merged

Add read-only permissions to release workflow#109
bernardladenthin merged 1 commit into
masterfrom
claude/add-workflow-permissions-zyUcf

Conversation

@bernardladenthin

Copy link
Copy Markdown
Owner

Summary

This change adds explicit permission configuration to the release workflow to follow GitHub Actions security best practices by implementing the principle of least privilege.

Key Changes

  • Added permissions section to the release workflow with contents: read access level
  • This restricts the workflow to read-only access to repository contents, preventing unintended modifications

Implementation Details

The permissions: contents: read configuration ensures that the release workflow can only read repository contents and cannot make changes to the codebase, which is appropriate for a release workflow that should primarily be reading configuration and model information rather than modifying repository state.

https://claude.ai/code/session_018GqGrJWwE6Fhw9UPy6ViEv

Add top-level permissions: contents: read to enforce least-privilege on the
GITHUB_TOKEN for all jobs. The publish-snapshot job already has its own
job-level block (contents: write, packages: write) which overrides this
default correctly, as suggested by CodeQL.
@bernardladenthin
bernardladenthin merged commit 7c23cea into master May 7, 2026
10 checks passed
@bernardladenthin
bernardladenthin deleted the claude/add-workflow-permissions-zyUcf branch May 7, 2026 16:53
bernardladenthin pushed a commit that referenced this pull request Jun 17, 2026
….11.0

Mirrors the streambuffer Dependabot updates (#108, #109) on the
java-llama.cpp branch. Both target versions are the current latest
releases on Maven Central.

Verified:
- spotless:check passes with 3.7.0 (no reformatting of existing sources;
  palantir-java-format stays pinned at 2.92.0)
- central-publishing 0.11.0 resolves from Maven Central (used only by the
  release/deploy profile)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JBzF5wtCjRu5t4FMzphryM
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