Add read-only permissions to release workflow#109
Merged
Conversation
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
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
permissionssection to the release workflow withcontents: readaccess levelImplementation Details
The
permissions: contents: readconfiguration 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