Fix permission issue for auto-update workflows#2150
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes auto-update workflow failures caused by a reusable workflow permission mismatch by granting the required write scopes to the specific calling jobs that invoke the reusable workflow.
Changes:
- Add job-scoped
contents: writeandpull-requests: writepermissions to theupdatejob in the Target Allocator auto-update workflow. - Add job-scoped
contents: writeandpull-requests: writepermissions to theupdatejob in the OBI auto-update workflow.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| .github/workflows/update-target-allocator-chart.yaml | Grants the calling update job the write permissions required by the called reusable workflow. |
| .github/workflows/update-obi-chart.yaml | Grants the calling update job the write permissions required by the called reusable workflow. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
jaronoff97
approved these changes
Apr 16, 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.
Fix #2149
The auto-update workflows are currently failing:
The failure in both linked runs is a reusable-workflow permission mismatch. The caller workflows only allowed
contents: read, while the called workflow’s update job requestscontents: writeandpull-requests: writeso it can push a branch and open/edit a PR.I fixed that by granting the required scopes on the calling job in
.github/workflows/update-obi-chart.yamland.github/workflows/update-target-allocator-chart.yaml. I kept the write grant scoped to the update job that invokes the reusable workflow instead of broadening workflow-wide defaults.Verification
actionlintpasses for those two callers plus.github/workflows/update-chart-app-version.yaml.Note: Both action tests no longer fail on the permission issues, each run gets past
startup_failure. Instead, they fail on not having access to the OTel bot token, which is expected.