ci: add explicit permissions to GitHub Actions workflows#1792
Merged
Conversation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
3 tasks
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1792 +/- ##
=======================================
Coverage 92.17% 92.17%
=======================================
Files 156 156
Lines 10741 10741
=======================================
+ Hits 9900 9901 +1
+ Misses 841 840 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Pijukatel
approved these changes
Mar 13, 2026
vdusek
added a commit
to apify/apify-sdk-python
that referenced
this pull request
Mar 13, 2026
## Summary - Adds explicit `permissions` blocks to all 8 workflow files, addressing CodeQL "Workflow does not contain permissions" security alerts - Follows the principle of least privilege: `contents: read` as the default, with elevated permissions only on jobs that need write access (releases, changelog updates, docs deployment) - Pre-existing permissions on `pypi_publish` and `_release_docs.yaml` jobs are preserved - Same as apify/apify-client-python#614 and apify/crawlee-python#1792 --- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
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
permissionsblocks to all 9 workflow files (addressing all CodeQL "Workflow does not contain permissions" security alerts).contents: readas the default, with elevated permissions only on jobs that need write access (releases, changelog updates, docs deployment).pypi_publishand_release_docs.yamljobs are preserved.Test plan
🤖 Generated with Claude Code