Add explicit permissions blocks to all workflows missing them#442
Merged
AnthonyRonning merged 1 commit intomasterfrom Feb 25, 2026
Merged
Conversation
Add 'permissions: contents: read' to mobile-build, android-build, desktop-build, rust-tests, and frontend-tests workflows. This follows the principle of least privilege for the GITHUB_TOKEN, limiting it to only read access which is sufficient for checkout, caching, and upload-artifact operations. The remaining workflows (claude, release, zapstore-publish, testflight-on-comment) already had explicit permissions blocks. Co-Authored-By: unknown <>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Deploying maple with
|
| Latest commit: |
31201ab
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://ccb9b68c.maple-ca8.pages.dev |
| Branch Preview URL: | https://devin-1772053214-add-workflo.maple-ca8.pages.dev |
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
Adds
permissions: contents: readto 5 GitHub Actions workflows that were missing explicit permission declarations, addressing a CodeQL security warning. This follows the principle of least privilege by restricting theGITHUB_TOKENto read-only access.Workflows updated:
mobile-build.ymlandroid-build.ymldesktop-build.ymlfrontend-tests.ymlrust-tests.ymlAlready had permissions (no changes needed):
claude.ymlrelease.ymlzapstore-publish.ymltestflight-on-comment.ymlReview & Testing Checklist for Human
desktop-build.ymlworks correctly withcontents: read— it passesGITHUB_TOKENtotauri-apps/tauri-action@v0. In CI mode (non-release) this should be fine since it's just building, but confirm the action doesn't attempt any write operations during PR/push builds.Notes
android-build.ymlandmobile-build.yml.