-
Notifications
You must be signed in to change notification settings - Fork 23
[BRE-1300] Adding a permissions block #545
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BRE-1300] Adding a permissions block #545
Conversation
|
Claude finished @pixman20's task —— View job PR Review CompleteTodo List
Summary of ChangesThis PR adds a permissions block to
Critical Issues FoundNone. The implementation is secure and correct. Suggested Improvements📝 Consider adding a comment explaining the permissions modelWhile the current implementation is correct, it would be helpful for future maintainers to understand the intentional use of the principle of least privilege: # Deny all permissions by default at workflow level (principle of least privilege)
permissions: {}
defaults:
run:
shell: bash
jobs:
delete:
name: Cleanup Android SDK
runs-on: ubuntu-24.04
# Grant only the minimum permissions required for this job
permissions:
contents: read # Required for actions/checkout if used
packages: write # Required for deleting package versionsRationale: This makes the security model explicit and helps reviewers understand that the dual-level permissions are intentional, not accidental. Good Practices Observed
Security Analysis✅ Excellent security posture:
Compliance CheckWorkflow Linter Compliance: ✅ This change should satisfy workflow linters that enforce explicit permissions declarations, such as:
Action Items for AuthorOptional (non-blocking):
No blocking issues found. This PR is ready to merge from a security and functionality perspective. |
|
Great job! No new security vulnerabilities introduced in this pull request |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #545 +/- ##
=======================================
Coverage 78.95% 78.95%
=======================================
Files 296 296
Lines 30904 30904
=======================================
Hits 24400 24400
Misses 6504 6504 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
… a permissions block (bitwarden/sdk-internal#545)

🎟️ Tracking
BRE-1300
📔 Objective
Adding a permissions block to make the workflow linter pass
📸 Screenshots
⏰ Reminders before review
🦮 Reviewer guidelines
:+1:) or similar for great changes:memo:) or ℹ️ (:information_source:) for notes or general info:question:) for questions:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:) for suggestions / improvements:x:) or:warning:) for more significant problems or concerns needing attention:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt:pick:) for minor or nitpick changes