fix(ci): add missing pull-requests: read permission for reusable CI#59
Closed
yvonnedevlinrh wants to merge 1 commit into
Closed
Conversation
The megalinter job in the reusable_ci.yml workflow requires pull-requests: read to validate PR titles via gh pr view. Without this permission, the caller defaults to pull-requests: none and CI fails with startup_failure. Closes complytime#58 Assisted-by: OpenCode (claude-opus-4-6) Signed-off-by: Yvonne Devlin <ydevlin@redhat.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
Adds
pull-requests: readto thecall_reusable_cijob permissions inci.yml, fixing thestartup_failurethat is currently breaking all CI runs.Problem
Since PR #52 bumped
reusable_ci.ymlto37b9e82, every CI run fails before execution with:Error calling workflow 'complytime/org-infra/.github/workflows/reusable_ci.yml@...'.
The nested job 'megalinter' is requesting 'pull-requests: read',
but is only allowed 'pull-requests: none'.
Failed run: https://github.com/complytime/complypack/actions/runs/27630148521
This affects all branches �
main, dependabot PRs, and the attempted fix in PR #57.Root Cause
Upstream commit
ec0ad9dinorg-infraadded agh pr viewcall to themegalinterjob for live PR title validation. This requirespull-requests: readat the job level inside the reusable workflow: