ci: Add missing contents: read permission for checkout#522
ci: Add missing contents: read permission for checkout#522mtrezza merged 1 commit intoparse-community:masterfrom
Conversation
|
🚀 Thanks for opening this pull request! We appreciate your effort in improving the project. Please let us know once your pull request is ready for review. Tip
Note Please respond to review comments from AI agents just like you would to comments from a human reviewer. Let the reviewer resolve their own comments, unless they have reviewed and accepted your commit, or agreed with your explanation for why the feedback was incorrect. Caution Pull requests must be written using an AI agent with human supervision. Pull requests written entirely by a human will likely be rejected, because of lower code quality, higher review effort and the higher risk of introducing bugs. Please note that AI review comments on this pull request alone do not satisfy this requirement. |
|
Caution Review failedPull request was closed or merged during review No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughTwo GitHub workflow files were updated to add read permissions for the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 actionlint (1.7.12).github/workflows/release-automated.ymlcould not read ".github/workflows/release-automated.yml": open .github/workflows/release-automated.yml: no such file or directory .github/workflows/release-manual-docs.ymlcould not read ".github/workflows/release-manual-docs.yml": open .github/workflows/release-manual-docs.yml: no such file or directory 🔧 YAMLlint (1.38.0).github/workflows/release-automated.yml[Errno 2] No such file or directory: '.github/workflows/release-automated.yml' .github/workflows/release-manual-docs.yml[Errno 2] No such file or directory: '.github/workflows/release-manual-docs.yml' 🔧 Checkov (3.2.513).github/workflows/release-automated.yml2026-04-04 18:57:16,569 [MainThread ] [ERROR] Template file not found: .github/workflows/release-automated.yml ... [truncated 9249 characters] ... cess file .github/workflows/release-automated.yml .github/workflows/release-manual-docs.yml2026-04-04 18:57:16,569 [MainThread ] [ERROR] Template file not found: .github/workflows/release-manual-docs.yml ... [truncated 9283 characters] ... file .github/workflows/release-manual-docs.yml Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Add missing
contents: readpermission to jobs that deploy to GitHub Pages.When a job declares an explicit
permissions:block, all default permissions are revoked. Theactions/checkoutaction requirescontents: readto access the repository. Without it, checkout may fail in private repos or when the token is used for authenticated operations.Changes
contents: readto permissions inrelease-automated.yml(docs-publish job)contents: readto permissions inrelease-manual-docs.yml(docs-publish job)Summary by CodeRabbit