[build] Add permissions for nightly job in release workflow#17031
[build] Add permissions for nightly job in release workflow#17031titusfortner merged 1 commit intotrunkfrom
Conversation
PR TypeBug fix Description
|
| Relevant files | |||
|---|---|---|---|
| Configuration changes |
|
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
There was a problem hiding this comment.
Pull request overview
This PR fixes a permissions issue in the release workflow by adding explicit contents: write and packages: write permissions to the nightly job. Without these permissions, the called nightly.yml workflow fails because it inherits only contents: read from the top-level workflow, which is insufficient for creating GitHub releases and publishing packages.
Changes:
- Added job-level permissions block to the
nightlyjob in.github/workflows/release.ymlwithcontents: writeandpackages: write
💥 What does this PR do?
Adds
contents: writeandpackages: writepermissions to thenightlyjob in the release workflow.When the release workflow calls the reusable
nightly.ymlworkflow, the called workflow's permissions are constrained by the caller's permissions. Without explicit permissions on thenightlyjob, it only inheritscontents: readfrom the top-level workflow permissions, causing the nightly workflow to fail when:contents: write)packages: write)🔧 Implementation Notes
Added a job-level
permissionsblock to thenightlyjob, following the same pattern used by other jobs in the workflow (github-release,docs,update-version).💡 Additional Considerations
None - this is a straightforward permissions fix.
🔄 Types of changes