Internal: Grant nested build permissions in Deploy workflow [TMZ-1053] - #689
Merged
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
Hello Elementor BuildLast updated at: 20260825.1110 ✅ Hello Elementor build is ready for download. You can download the latest build from the link below: The build is available for 7 days. |
ManorHazaz
enabled auto-merge (squash)
August 25, 2026 11:10
Ntnelbaba
approved these changes
Aug 25, 2026
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
deployments: writeandpull-requests: writeon the Deploy workflow'sbuildjob so it can callbuild.ymlworkflow_dispatchTest plan
deploy.ymlparses (no "Invalid workflow file" on the Deploy workflow)workflow_dispatchcan run past the build reusable-workflow callMade with Cursor
✨ PR Description
1. Problem & Context
Nested reusable workflows need explicit permission grants to execute restricted GitHub Actions (TMZ-1053). Without these, the
build.ymljob lacks authorization for deployments and PR operations.2. What Changed (Where)
.github/workflows/deploy.yml: Addedpermissionsblock tobuildjob grantingactions: read,contents: read,deployments: write,pull-requests: write.3. How It Works
Parent workflow (
deploy.yml) delegates to reusable workflow (build.yml) viauses. Explicit permissions inherited viasecrets: inheritnow explicitly grant required capabilities for nested workflow execution.4. Risks
None—minimal scope, scoped to build job only, follows GitHub best practices for nested workflows.
Generated by LinearB AI and added by gitStream.
AI-generated content may contain inaccuracies. Please verify before using.
💡 Tip: You can customize your AI Description using Guidelines Learn how