Skip to content

CI: grant pull-requests:read to pr-verifier caller#379

Open
rh-dnagornuks wants to merge 1 commit into
kagenti:mainfrom
rh-dnagornuks:fix-pr-verifier-permissions
Open

CI: grant pull-requests:read to pr-verifier caller#379
rh-dnagornuks wants to merge 1 commit into
kagenti:mainfrom
rh-dnagornuks:fix-pr-verifier-permissions

Conversation

@rh-dnagornuks
Copy link
Copy Markdown
Contributor

@rh-dnagornuks rh-dnagornuks commented May 27, 2026

Summary

The permissions: {} block added in e5a5605 locked all token permissions
to none at the workflow level. GitHub enforces the caller's permissions
as a hard ceiling for any reusable workflow it invokes, so the nested
pr-title-check job in kagenti/.github/workflows/pr-verifier-required.yml
was blocked from requesting pull-requests: read — causing the workflow to fail.
The workflow after that commit has failed to run on every PR made since:
https://github.com/kagenti/kagenti-operator/actions/workflows/pr-verifier.yml

Changes

  • Replace permissions: {} with permissions: pull-requests: read in
    .github/workflows/pr-verifier.yml — the minimum scope required by the
    reusable workflow

Test Plan

Made with Cursor

The top-level `permissions: {}` introduced in e5a5605 locked all
permissions to none, blocking the nested `pr-title-check` job in
the reusable workflow from requesting `pull-requests: read`.

Signed-off-by: Daniels Nagornuks <dnagornu@redhat.com>
@rh-dnagornuks rh-dnagornuks changed the title CI: Grant pull-requests:read to pr-verifier caller CI: grant pull-requests:read to pr-verifier caller May 27, 2026
@rh-dnagornuks rh-dnagornuks marked this pull request as ready for review May 27, 2026 12:06
@rh-dnagornuks rh-dnagornuks requested a review from a team as a code owner May 27, 2026 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: New /:ToDo

Development

Successfully merging this pull request may close these issues.

2 participants